Skip to contentSkip to conversation

err1-62: ax25_ds_idletimer_expiry() locking fix

PATCH Applied [email protected] 2 participants 2 messages Jul 2, 2004 – Jul 5, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 err1-62: ax25_ds_idletimer_expiry() locking fix

Fix deadlock identified by the Stanford locking checker.

---

 25-akpm/net/ax25/ax25_ds_timer.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
net/ax25/ax25_ds_timer.c renamed from net/ax25/ax25_ds_timer.c~err1-62-ax25_ds_idletimer_expiry-locking-fix +1 -1
diff -puN net/ax25/ax25_ds_timer.c~err1-62-ax25_ds_idletimer_expiry-locking-fix net/ax25/ax25_ds_timer.c
@@ -180,7 +180,7 @@ void ax25_ds_idletimer_expiry(ax25_cb *a
 			ax25->sk->sk_state_change(ax25->sk);
 			sock_set_flag(ax25->sk, SOCK_DEAD);
 		}
-		bh_lock_sock(ax25->sk);
+		bh_unlock_sock(ax25->sk);
 	}
 }
 

_