diff options
author | Eric Dumazet <edumazet@google.com> | 2012-10-18 11:14:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-10-18 21:34:31 +0200 |
commit | a3374c42aa5f7237e87ff3b0622018636b0c847e (patch) | |
tree | 8a9232aed518f5ce9acb862fc125aacc5cd7cebd /arch/m32r | |
parent | net: qmi_wwan: adding more ZTE devices (diff) | |
download | linux-a3374c42aa5f7237e87ff3b0622018636b0c847e.tar.xz linux-a3374c42aa5f7237e87ff3b0622018636b0c847e.zip |
tcp: fix FIONREAD/SIOCINQ
tcp_ioctl() tries to take into account if tcp socket received a FIN
to report correct number bytes in receive queue.
But its flaky because if the application ate the last skb,
we return 1 instead of 0.
Correct way to detect that FIN was received is to test SOCK_DONE.
Reported-by: Elliot Hughes <enh@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions