diff options
author | Xin Long <lucien.xin@gmail.com> | 2016-07-30 06:14:41 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-31 05:06:22 (GMT) |
commit | e08786942e0ea3a3cb268e6c62523d40f1c5eeb8 (patch) | |
tree | e738a612df3e51d18ca95d387a1d778483c20f44 /net/ipv4/fib_rules.c | |
parent | a0fc6843f948345fa85c218fec662f571804d2f9 (diff) | |
download | linux-e08786942e0ea3a3cb268e6c62523d40f1c5eeb8.tar.xz |
sctp: allow receiving msg when TCP-style sk is in CLOSED state
Commit 141ddefce7c8 ("sctp: change sk state to CLOSED instead of
CLOSING in sctp_sock_migrate") changed sk state to CLOSED if the
assoc is closed when sctp_accept clones a new sk.
If there is still data in sk receive queue, users will not be able
to read it any more, as sctp_recvmsg returns directly if sk state
is CLOSED.
This patch is to add CLOSED state check in sctp_recvmsg to allow
reading data from TCP-style sk with CLOSED state as what TCP does.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
0 files changed, 0 insertions, 0 deletions