Drop lock before calling nr_destroy_socket
Subsystems (2)
nr_destroy_socket takes the socket lock itself so it should better be called with the socket unlocked.
Signed-off-by Ralf Baechle <[email protected]>
---
net/netrom/nr_timer.c +1 -1
@@ -138,8 +138,8 @@ static void nr_heartbeat_expiry(unsignedif (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 ; }
From: Ralf Baechle <[email protected]>
Date: Tue, 11 Jul 2006 00:25:45 +0100
Quoted 4 lines
nr_destroy_sockettakes the socket lock itself so it should better be called with the socket unlocked.Signed-off-by Ralf Baechle <[email protected]>
Applied, thanks Ralf.