summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/files/drivers
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-06-13 11:37:35 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-06-13 11:37:35 +0000
commitf03c775c625b9203be0b7e0d5bf0dff4e4041a63 (patch)
treece51d4ac47b73eeaeffb8f4276b327bef9ec35f1 /target/linux/generic-2.6/files/drivers
parentb4566a37d16109d0c97870cce89d18bc69d9b0fd (diff)
swconfig: fix lock imbalance in unregister_switch()
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files/drivers')
-rw-r--r--target/linux/generic-2.6/files/drivers/net/phy/swconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c b/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c
index fa916982f0..dea8e78b79 100644
--- a/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c
+++ b/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c
@@ -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);