Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Andrew Morton and committed by
Arnaldo Carvalho de Melo
a3d7a9d7 6b7d31fc

+1
+1
net/rose/rose_timer.c
··· 138 138 is accepted() it isn't 'dead' so doesn't get removed. */ 139 139 if (sock_flag(sk, SOCK_DESTROY) || 140 140 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { 141 + bh_unlock_sock(sk); 141 142 rose_destroy_socket(sk); 142 143 return; 143 144 }