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

Commit 8bf2b7b1 authored by Ralf Baechle's avatar Ralf Baechle Committed by David S. Miller
Browse files

[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: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5cc29e3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,8 +138,8 @@ static void nr_heartbeat_expiry(unsigned long param)
		if (sock_flag(sk, SOCK_DESTROY) ||
		    (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
			sock_hold(sk);
			nr_destroy_socket(sk);
			bh_unlock_sock(sk);
			nr_destroy_socket(sk);
			sock_put(sk);
			return;
		}