[TCP] tcp_read_sock: Allow recv_actor() return return negative error value.
authorJens Axboe <jens.axboe@oracle.com>
Sun, 24 Jun 2007 06:07:50 +0000 (23:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Jun 2007 06:07:50 +0000 (23:07 -0700)
commitddb61a57bb6df673986e6476407f97d28b02031f
tree1e7faaddbb0fa96d5fec64e15140a697c0cfd5eb
parent4b2a8fb3a7f7935f62a7bbdc851789fb7c2da032
[TCP] tcp_read_sock: Allow recv_actor() return return negative error value.

tcp_read_sock() currently assumes that the recv_actor() only returns
number of bytes copied. For network splice receive, we may have to
return an error in some cases. So allow the actor to return a negative
error value.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c