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 fa916982f0894c82ebbd89f93b9a7d8b82b07754..dea8e78b79b4fd61da2a32427d92811c77648206 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);