Skip to content
Snippets Groups Projects
Commit c751e4f8 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 0efffaf9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment