From 5123722897968b2b6c31ffed5a2e31d6c1d788f1 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 13 Jun 2010 11:45:45 +0000 Subject: [PATCH] backfire: swconfig: fix lock imbalance in unregister_switch() (backport of r21780) Signed-off-by: Karl Beldan SVN-Revision: 21782 --- 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 e83e795b80..4ca4ea32f7 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 @@ -882,6 +882,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