Skip to content

Commit

Permalink
VSOCK: fix outdated sk_state value in hvs_release()
Browse files Browse the repository at this point in the history
Since commit 3b4477d ("VSOCK: use TCP
state constants for sk_state") VSOCK has used TCP_* constants for
sk_state.

Commit b4562ca ("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 <[email protected]>
CC: Cathy Avery <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Jorgen Hansen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
stefanhaRH authored and davem330 committed Dec 5, 2017
1 parent a7d5f10 commit c9d3fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/vmw_vsock/hyperv_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,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);
Expand Down

0 comments on commit c9d3fe9

Please sign in to comment.