Skip to content

Commit

Permalink
ath6kl: unlock if ath6kl_cfg80211_connect() fails
Browse files Browse the repository at this point in the history
There is an unlock missing on this error path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Dan Carpenter authored and Kalle Valo committed Nov 21, 2011
1 parent b64de35 commit 743b451
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
} else
ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG;

Expand Down

0 comments on commit 743b451

Please sign in to comment.