From: Gabor Juhos Date: Sun, 13 Jun 2010 11:37:35 +0000 (+0000) Subject: swconfig: fix lock imbalance in unregister_switch() X-Git-Tag: reboot~19640 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e8c46b8a2a5d092452203b7a2c73c8383da87f59;p=openwrt%2Fstaging%2Flynxis.git swconfig: fix lock imbalance in unregister_switch() Signed-off-by: Karl Beldan SVN-Revision: 21780 --- 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);