From e8c46b8a2a5d092452203b7a2c73c8383da87f59 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 13 Jun 2010 11:37:35 +0000 Subject: [PATCH] swconfig: fix lock imbalance in unregister_switch() Signed-off-by: Karl Beldan SVN-Revision: 21780 --- target/linux/generic-2.6/files/drivers/net/phy/swconfig.c | 1 + 1 file changed, 1 insertion(+) 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 fa916982f089..dea8e78b79b4 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); -- 2.30.2