| To: | davem@xxxxxxxxxx |
|---|---|
| Subject: | [patch 1/1] err1-67: lapb_unregister() locking fix |
| From: | akpm@xxxxxxxx |
| Date: | Fri, 02 Jul 2004 01:30:49 -0700 |
| Cc: | netdev@xxxxxxxxxxx, akpm@xxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Fix deadlock identified by the Stanford locking checker.
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---
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;
_
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [patch 1/1] err1-62: ax25_ds_idletimer_expiry() locking fix, akpm |
|---|---|
| Next by Date: | Re: [BUGS] [CHECKER] 99 synchronization bugs and a lock summary database, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | [patch 1/1] err1-62: ax25_ds_idletimer_expiry() locking fix, akpm |
| Next by Thread: | Re: [patch 1/1] err1-67: lapb_unregister() locking fix, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |