netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie
@ 2006-12-10 17:27 Ulrich Kunitz
  2006-12-10 17:39 ` Michael Buesch
  2006-12-10 17:44 ` Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Ulrich Kunitz @ 2006-12-10 17:27 UTC (permalink / raw)
  To: netdev; +Cc: John W. Linville, Andrew Morton, Johannes Berg, dsd

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>
---
 net/ieee80211/softmac/ieee80211softmac_wx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c
index 480d72c..fa2f7da 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
 			err = -E2BIG;
 	}
 	spin_unlock_irqrestore(&mac->lock, flags);
-	mutex_lock(&mac->associnfo.mutex);
+	mutex_unlock(&mac->associnfo.mutex);
 
 	return err;
 }
-- 
1.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-10 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-10 17:27 [PATCH] ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie Ulrich Kunitz
2006-12-10 17:39 ` Michael Buesch
2006-12-10 17:44 ` Johannes Berg
2006-12-10 17:51   ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).