aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-06-13 11:37:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-06-13 11:37:35 +0000
commite8c46b8a2a5d092452203b7a2c73c8383da87f59 (patch)
treed426d4496cd2705ec49885311eb1752b3eb8d043 /target/linux
parent3165ea7886d40115fc382c3271495abc67d12fed (diff)
downloadupstream-e8c46b8a2a5d092452203b7a2c73c8383da87f59.tar.gz
upstream-e8c46b8a2a5d092452203b7a2c73c8383da87f59.tar.bz2
upstream-e8c46b8a2a5d092452203b7a2c73c8383da87f59.zip
swconfig: fix lock imbalance in unregister_switch()
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> SVN-Revision: 21780
Diffstat (limited to 'target/linux')
-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);