mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[NETROM]: Drop lock before calling nr_destroy_socket
nr_destroy_socket takes the socket lock itself so it should better be called with the socket unlocked. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5cc29e3bea
commit
8bf2b7b188
1 changed files with 1 additions and 1 deletions
|
@ -138,8 +138,8 @@ static void nr_heartbeat_expiry(unsigned long param)
|
||||||
if (sock_flag(sk, SOCK_DESTROY) ||
|
if (sock_flag(sk, SOCK_DESTROY) ||
|
||||||
(sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
|
(sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
|
||||||
sock_hold(sk);
|
sock_hold(sk);
|
||||||
nr_destroy_socket(sk);
|
|
||||||
bh_unlock_sock(sk);
|
bh_unlock_sock(sk);
|
||||||
|
nr_destroy_socket(sk);
|
||||||
sock_put(sk);
|
sock_put(sk);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue