Commit d2805a88 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[AX25]: ax25_ds_idletimer_expiry() locking fix.

Fix deadlock identified by the Stanford locking checker.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 891728d3
...@@ -180,7 +180,7 @@ void ax25_ds_idletimer_expiry(ax25_cb *ax25) ...@@ -180,7 +180,7 @@ void ax25_ds_idletimer_expiry(ax25_cb *ax25)
ax25->sk->sk_state_change(ax25->sk); ax25->sk->sk_state_change(ax25->sk);
sock_set_flag(ax25->sk, SOCK_DEAD); sock_set_flag(ax25->sk, SOCK_DEAD);
} }
bh_lock_sock(ax25->sk); bh_unlock_sock(ax25->sk);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment