Skip to contentSkip to conversation

Wireless: nl80211, fix lock imbalance

PATCH New Jiri Slaby 1 participant 1 message Jun 20, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 Wireless: nl80211, fix lock imbalance

Don't forget to unlock cfg80211_mutex in one fail path of nl80211_set_wiphy.

---
 net/wireless/nl80211.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/wireless/nl80211.c +1 -0
index 2416856..a62a190 100644
@@ -447,6 +447,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
 
 	rdev = __cfg80211_drv_from_info(info);
 	if (IS_ERR(rdev)) {
+		mutex_unlock(&cfg80211_mutex);
 		result = PTR_ERR(rdev);
 		goto unlock;
 	}
Signature · 1 line
1.6.3.2