diff options
| author | Eric Dumazet <edumazet@google.com> | 2021-02-13 17:26:34 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-02-16 00:20:36 +0300 |
| commit | 39354eb29f597aa01b3d51ccc8169cf183c4367f (patch) | |
| tree | 4b3a4e8176697ad14bd78e7d281e8bafd7ba3e2c /lib/mpi/mpi-sub-ui.c | |
| parent | ca04422afd6998611a81d0ea1b61d5a5f4923f84 (diff) | |
| download | linux-39354eb29f597aa01b3d51ccc8169cf183c4367f.tar.xz | |
tcp: tcp_data_ready() must look at SOCK_DONE
My prior cleanup missed that tcp_data_ready() has to look at SOCK_DONE.
Otherwise, an application using SO_RCVLOWAT will not get EPOLLIN event
if a FIN is received in the middle of expected payload.
The reason SOCK_DONE is not examined in tcp_epollin_ready()
is that tcp_poll() catches the FIN because tcp_fin()
is also setting RCV_SHUTDOWN into sk->sk_shutdown
Fixes: 05dc72aba364 ("tcp: factorize logic into tcp_epollin_ready()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Wei Wang <weiwan@google.com>
Cc: Arjun Roy <arjunroy@google.com>
Reviewed-by: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
