Skip to contentSkip to conversation

ath6kl: unlock if ath6kl_cfg80211_connect() fails

PATCH Applied Dan Carpenter 2 participants 2 messages Nov 18, 2011 – Nov 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath6kl: unlock if ath6kl_cfg80211_connect() fails

There is an unlock missing on this error path.

drivers/net/wireless/ath/ath6kl/cfg80211.c +3 -1
index 0252604..5bb4060 100644
@@ -427,8 +427,10 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
 
 	if (sme->ie && (sme->ie_len > 0)) {
 		status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len);
-		if (status)
+		if (status) {
+			up(&ar->sem);
 			return status;
+		}
 	}
 
 	if (test_bit(CONNECTED, &vif->flags) &&