netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] err1-67: lapb_unregister() locking fix
@ 2004-07-02  8:30 akpm
  2004-07-05 23:04 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2004-07-02  8:30 UTC (permalink / raw)
  To: davem; +Cc: netdev, akpm



Fix deadlock identified by the Stanford locking checker.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/net/lapb/lapb_iface.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/lapb/lapb_iface.c~err1-67-lapb_unregister-locking-fix net/lapb/lapb_iface.c
--- 25/net/lapb/lapb_iface.c~err1-67-lapb_unregister-locking-fix	2004-07-02 01:29:50.645438240 -0700
+++ 25-akpm/net/lapb/lapb_iface.c	2004-07-02 01:29:55.717667144 -0700
@@ -176,7 +176,7 @@ int lapb_unregister(struct net_device *d
 	struct lapb_cb *lapb;
 	int rc = LAPB_BADTOKEN;
 
-	write_unlock_bh(&lapb_list_lock);
+	write_lock_bh(&lapb_list_lock);
 	lapb = __lapb_devtostruct(dev);
 	if (!lapb)
 		goto out;
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-05 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02  8:30 [patch 1/1] err1-67: lapb_unregister() locking fix akpm
2004-07-05 23:04 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).