Skip to content

Commit a3d7a9d

Browse files
Andrew MortonArnaldo Carvalho de Melo
authored andcommitted
[ROSE]: rose_heartbeat_expiry() locking fix
Missing unlock, as noted by Ted Unangst <tedu@coverity.com>. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
1 parent 6b7d31f commit a3d7a9d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/rose/rose_timer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static void rose_heartbeat_expiry(unsigned long param)
138138
is accepted() it isn't 'dead' so doesn't get removed. */
139139
if (sock_flag(sk, SOCK_DESTROY) ||
140140
(sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
141+
bh_unlock_sock(sk);
141142
rose_destroy_socket(sk);
142143
return;
143144
}

0 commit comments

Comments
 (0)