diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-06-13 11:37:35 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-06-13 11:37:35 +0000 |
commit | e8c46b8a2a5d092452203b7a2c73c8383da87f59 (patch) | |
tree | d426d4496cd2705ec49885311eb1752b3eb8d043 /target/linux | |
parent | 3165ea7886d40115fc382c3271495abc67d12fed (diff) | |
download | upstream-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.c | 1 |
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); |