summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Austruy <maxime@tralhalla.org>2006-12-03 10:40:01 -0600
committerChris Wright <chrisw@sous-sol.org>2006-12-11 11:32:38 -0800
commitbed569c712c48235f355b963d41482ecda314e4f (patch)
tree8c1fa7f130617110a0887d2188282b6e6ff7cb61
parent721aed8126ef1b3823fdd27c3fc3b98667e80fa9 (diff)
[PATCH] softmac: fix unbalanced mutex_lock/unlock in ieee80211softmac_wx_set_mlme
Routine ieee80211softmac_wx_set_mlme has one return that fails to release a mutex acquired at entry. Signed-off-by: Maxime Austruy <maxime@tralhalla.org> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_wx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c
index 23068a830f7d..5b7b5b41554d 100644
--- a/net/ieee80211/softmac/ieee80211softmac_wx.c
+++ b/net/ieee80211/softmac/ieee80211softmac_wx.c
@@ -495,7 +495,8 @@ ieee80211softmac_wx_set_mlme(struct net_device *dev,
printk(KERN_DEBUG PFX "wx_set_mlme: we should know the net here...\n");
goto out;
}
- return ieee80211softmac_deauth_req(mac, net, reason);
+ err = ieee80211softmac_deauth_req(mac, net, reason);
+ goto out;
case IW_MLME_DISASSOC:
ieee80211softmac_send_disassoc_req(mac, reason);
mac->associnfo.associated = 0;