swconfig: fix lock imbalance in unregister_switch()
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Jun 2010 11:37:35 +0000 (11:37 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 13 Jun 2010 11:37:35 +0000 (11:37 +0000)
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic-2.6/files/drivers/net/phy/swconfig.c

index fa91698..dea8e78 100644 (file)
@@ -886,6 +886,7 @@ unregister_switch(struct switch_dev *dev)
        swconfig_lock();
        list_del(&dev->dev_list);
        swconfig_unlock();
+       spin_unlock(&dev->lock);
 }
 EXPORT_SYMBOL_GPL(unregister_switch);
 
This page took 0.026294 seconds and 4 git commands to generate.