diff options
author | Lennert Buytenhek <buytenh@marvell.com> | 2009-01-05 09:00:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-05 09:00:12 +0100 |
commit | 4f7d54f59bc470f0aaa932f747a95232d7ebf8b1 (patch) | |
tree | 9d391a6c4d9fdb1c8534127702b5543b0b5ab089 /fs/binfmt_aout.c | |
parent | dccp: Integrate the TFRC library with DCCP (diff) | |
download | linux-4f7d54f59bc470f0aaa932f747a95232d7ebf8b1.tar.xz linux-4f7d54f59bc470f0aaa932f747a95232d7ebf8b1.zip |
tcp: don't mask EOF and socket errors on nonblocking splice receive
Currently, setting SPLICE_F_NONBLOCK on splice from a TCP socket
results in masking of EOF (RDHUP) and error conditions on the socket
by an -EAGAIN return. Move the NONBLOCK check in tcp_splice_read()
to be after the EOF and error checks to fix this.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions