mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
econet: 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
b61d38e055
commit
0efffaf9d5
@ -573,9 +573,7 @@ static int econet_release(struct socket *sock)
|
||||
|
||||
sk->sk_state_change(sk); /* It is useless. Just for sanity. */
|
||||
|
||||
sock->sk = NULL;
|
||||
sk->sk_socket = NULL;
|
||||
sock_set_flag(sk, SOCK_DEAD);
|
||||
sock_orphan(sk);
|
||||
|
||||
/* Purge queues */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user