Commit 743b4518 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo

ath6kl: unlock if ath6kl_cfg80211_connect() fails

There is an unlock missing on this error path.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent b64de356
...@@ -427,8 +427,10 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -427,8 +427,10 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
if (sme->ie && (sme->ie_len > 0)) { if (sme->ie && (sme->ie_len > 0)) {
status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len); status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len);
if (status) if (status) {
up(&ar->sem);
return status; return status;
}
} else } else
ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG; ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment