mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
VSOCK: fix outdated sk_state value in hvs_release()
Since commit3b4477d2dc("VSOCK: use TCP state constants for sk_state") VSOCK has used TCP_* constants for sk_state. Commitb4562ca792("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]>
This commit is contained in:
parent
a7d5f107b4
commit
c9d3fe9da0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue