ath6kl: unlock if ath6kl_cfg80211_connect() fails
Subsystems (2)
PATCH 1/1 ath6kl: unlock if ath6kl_cfg80211_connect() fails
There is an unlock missing on this error path.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/wireless/ath/ath6kl/cfg80211.c +3 -1
@@ -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) &&
Kalle Valo
AppliedQuoted 3 lines · Dan Carpenter
There is an unlock missing on this error path.
Signed-off-by Dan Carpenter <[email protected]>
Thanks, applied to ath6kl.git. There was a conflict but that was easy to fix.
Kalle