Xin Long e08786942e 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>
2016-07-30 22:06:22 -07:00
..
2016-01-27 20:36:15 +08:00
2016-07-11 13:25:39 -07:00
2013-12-06 12:37:56 -05:00
2016-04-15 17:29:36 -04:00
2016-06-03 19:37:21 -04:00
2016-07-16 22:02:09 -07:00
2016-07-11 13:25:39 -07:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00