Commit cc8ce997 authored by Maxime Austruy's avatar Maxime Austruy Committed by John W. Linville

[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: default avatarMaxime Austruy <maxime@tralhalla.org>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2b50c245
...@@ -495,7 +495,8 @@ ieee80211softmac_wx_set_mlme(struct net_device *dev, ...@@ -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"); printk(KERN_DEBUG PFX "wx_set_mlme: we should know the net here...\n");
goto out; goto out;
} }
return ieee80211softmac_deauth_req(mac, net, reason); err = ieee80211softmac_deauth_req(mac, net, reason);
goto out;
case IW_MLME_DISASSOC: case IW_MLME_DISASSOC:
ieee80211softmac_send_disassoc_req(mac, reason); ieee80211softmac_send_disassoc_req(mac, reason);
mac->associnfo.associated = 0; mac->associnfo.associated = 0;
......
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