swconfig: fix lock imbalance in unregister_switch()
authorGabor Juhos <juhosg@openwrt.org>
Sun, 13 Jun 2010 11:37:35 +0000 (11:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 13 Jun 2010 11:37:35 +0000 (11:37 +0000)
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com>
SVN-Revision: 21780

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);