From: juhosg Date: Sun, 13 Jun 2010 11:37:35 +0000 (+0000) Subject: swconfig: fix lock imbalance in unregister_switch() X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/f03c775c625b9203be0b7e0d5bf0dff4e4041a63 swconfig: fix lock imbalance in unregister_switch() Signed-off-by: Karl Beldan git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 fa916982f..dea8e78b7 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);