diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-18 17:09:32 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-21 19:47:08 +0200 |
commit | 743b4518f9432e09ade6120ced414558969ba5fd (patch) | |
tree | 2b4b5997b63e7f7425eb130334da40e02e1513f8 /drivers/net | |
parent | b64de35654cea2f5301d08f9195836f7ea8118c0 (diff) | |
download | blackbird-op-linux-743b4518f9432e09ade6120ced414558969ba5fd.tar.gz blackbird-op-linux-743b4518f9432e09ade6120ced414558969ba5fd.zip |
ath6kl: unlock if ath6kl_cfg80211_connect() fails
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 3795686f6e2a..364f7884a3d3 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -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; |