]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] softmac: fix unbalanced mutex_lock/unlock in ieee80211softmac_wx_set_mlme
authorMaxime Austruy <maxime@tralhalla.org>
Sun, 3 Dec 2006 16:40:01 +0000 (10:40 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Dec 2006 00:31:33 +0000 (19:31 -0500)
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: John W. Linville <linville@tuxdriver.com>
net/ieee80211/softmac/ieee80211softmac_wx.c

index 23068a830f7dba7916c0380ef1767758d1f95815..5b7b5b41554dfc8a1b094e671a15ddecbf5b3529 100644 (file)
@@ -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;