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 | 2e2a19f32707174c501428337536783232a34828 (patch) | |
tree | ce51d4ac47b73eeaeffb8f4276b327bef9ec35f1 /target/linux/generic-2.6/files/drivers | |
parent | 9a3782b35f8bed7e729beadce742c5b4b4422740 (diff) | |
download | master-187ad058-2e2a19f32707174c501428337536783232a34828.tar.gz master-187ad058-2e2a19f32707174c501428337536783232a34828.tar.bz2 master-187ad058-2e2a19f32707174c501428337536783232a34828.zip |
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.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); |