From f03c775c625b9203be0b7e0d5bf0dff4e4041a63 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 13 Jun 2010 11:37:35 +0000 Subject: 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 --- target/linux/generic-2.6/files/drivers/net/phy/swconfig.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/generic-2.6/files/drivers') 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); -- cgit v1.2.3