summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorUlrich Kunitz <kune@deine-taler.de>2006-12-10 18:39:28 +0100
committerChris Wright <chrisw@sous-sol.org>2007-01-10 11:05:17 -0800
commit4ad328ffdcf3d014ff98ff75afcf457387c8bd56 (patch)
treec7a677b7da6cb1fb26bc51860c3430acc54da4fe /net
parent18576724d36745d801988ed56de1062182a0fe02 (diff)
[PATCH] ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie
ieee80211softmac_wx_get_genie locks the associnfo mutex at function exit. This patch fixes it. The patch is against Linus' tree (commit af1713e0). Signed-off-by: Ulrich Kunitz <kune@deine-taler.de> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'net')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_wx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c
index 5b7b5b41554d..70d42920a1f2 100644
--- a/net/ieee80211/softmac/ieee80211softmac_wx.c
+++ b/net/ieee80211/softmac/ieee80211softmac_wx.c
@@ -463,7 +463,7 @@ ieee80211softmac_wx_get_genie(struct net_device *dev,
err = -E2BIG;
}
spin_unlock_irqrestore(&mac->lock, flags);
- mutex_lock(&mac->associnfo.mutex);
+ mutex_unlock(&mac->associnfo.mutex);
return err;
}