]> git.baikalelectronics.ru Git - kernel.git/commit
VSOCK: fix outdated sk_state value in hvs_release()
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Dec 2017 11:31:14 +0000 (11:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 20:07:37 +0000 (15:07 -0500)
commit0ec01044b4f97f3bad46692fad614e0473d42f30
tree0efe6914efbe8280d72bcb94769098a07a283bf3
parentf246590e0e629477a9ebd92562bfd45c605465ab
VSOCK: fix outdated sk_state value in hvs_release()

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

Commit 6c153fda91f56ca59aa07d31ee3cc10deb90f96b ("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>
net/vmw_vsock/hyperv_transport.c