Merge to Fedora kernel-2.6.7-1.492
[linux-2.6.git] / net / lapb / lapb_iface.c
index beca11e..fe50f63 100644 (file)
@@ -176,7 +176,7 @@ int lapb_unregister(struct net_device *dev)
        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;