]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: change sk state to CLOSED instead of CLOSING in sctp_sock_migrate
authorXin Long <lucien.xin@gmail.com>
Wed, 15 Jun 2016 17:15:06 +0000 (01:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jun 2016 21:10:44 +0000 (14:10 -0700)
commit9e0e87f1a2966338577d437755e9f1732f61c8d7
tree9dab2d664b09c74138da528c564c1f1c86b4ed04
parent26b5a5b336154b648d858e8bc0334d816201fa57
sctp: change sk state to CLOSED instead of CLOSING in sctp_sock_migrate

Commit da9339344cda ("sctp: sctp should change socket state when
shutdown is received") may set sk_state CLOSING in sctp_sock_migrate,
but inet_accept doesn't allow the sk_state other than ESTABLISHED/
CLOSED for sctp. So we will change sk_state to CLOSED, instead of
CLOSING, as actually sk is closed already there.

Fixes: da9339344cda ("sctp: sctp should change socket state when shutdown is received")
Reported-by: Ye Xiaolong <xiaolong.ye@intel.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c