From: Dan Carpenter Date: Fri, 18 Nov 2011 14:09:32 +0000 (+0300) Subject: ath6kl: unlock if ath6kl_cfg80211_connect() fails X-Git-Tag: v3.12-rc1~2707^2~57^2~287^2~200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=743b4518f9432e09ade6120ced414558969ba5fd;p=kernel%2Fkernel-generic.git ath6kl: unlock if ath6kl_cfg80211_connect() fails There is an unlock missing on this error path. Signed-off-by: Dan Carpenter Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 3795686..364f788 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;