Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -612,8 +612,7 @@ static int x25_release(struct socket *sock)
			break;
			break;
	}
	}


	sock->sk	= NULL;
	sock_orphan(sk);
	sk->sk_socket	= NULL;	/* Not used, but we should do this */
out:
out:
	return 0;
	return 0;
}
}