VSOCK: fix outdated sk_state value in hvs_release()

[ Upstream commit c9d3fe9da0 ]

Since commit 3b4477d2dc ("VSOCK: use TCP
state constants for sk_state") VSOCK has used TCP_* constants for
sk_state.

Commit b4562ca792 ("hv_sock: add locking
in the open/close/release code paths") reintroduced the SS_DISCONNECTING
constant.

This patch replaces the old SS_DISCONNECTING with the new TCP_CLOSING
constant.

CC: Dexuan Cui <decui@microsoft.com>
CC: Cathy Avery <cavery@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Stefan Hajnoczi 2017-12-05 11:31:14 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 8001a37b83
Коммит 034ddb54c3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -488,7 +488,7 @@ static void hvs_release(struct vsock_sock *vsk)
lock_sock(sk);
sk->sk_state = SS_DISCONNECTING;
sk->sk_state = TCP_CLOSING;
vsock_remove_sock(vsk);
release_sock(sk);