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

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

index e83e795b808a059baa153837f68ad8b0fcb56f7a..4ca4ea32f7ae021a99a94496deda118b286469b9 100644 (file)
@@ -882,6 +882,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);