mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
[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>
This commit is contained in:
parent
6b7d31fcdd
commit
a3d7a9d775
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ static void rose_heartbeat_expiry(unsigned long param)
|
|||
is accepted() it isn't 'dead' so doesn't get removed. */
|
||||
if (sock_flag(sk, SOCK_DESTROY) ||
|
||||
(sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
|
||||
bh_unlock_sock(sk);
|
||||
rose_destroy_socket(sk);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue