mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
x25: Use sock_orphan() instead of open-coded (and buggy) variant.
It doesn't grab the sk_callback_lock, it doesn't NULL out the sk->sk_sleep waitqueue pointer, etc. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0efffaf9d5
commit
c751e4f8b3
1 changed files with 1 additions and 2 deletions
|
@ -612,8 +612,7 @@ static int x25_release(struct socket *sock)
|
|||
break;
|
||||
}
|
||||
|
||||
sock->sk = NULL;
|
||||
sk->sk_socket = NULL; /* Not used, but we should do this */
|
||||
sock_orphan(sk);
|
||||
out:
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue