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)
commitc9d3fe9da094a9a7a3d3cd365b334b822e05f5e8
tree0efe6914efbe8280d72bcb94769098a07a283bf3
parenta7d5f107b4978e08eeab599ee7449af34d034053
VSOCK: fix outdated sk_state value in hvs_release()

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

Commit b4562ca7925a3bedada87a3dd072dd5bad043288 ("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