Skip to contentSkip to conversation

softmac: Fix missing mutex unlock

PATCH New Larry Finger 1 participant 1 message Dec 10, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 softmac: Fix missing mutex unlock

From: Ulrich Kunitz <[email protected]>

ieee80211softmac_wx_get_genie locks the associnfo mutex at function exit. This patch fixes it. The patch is against Linus' tree (commit af1713e0).

---
 net/ieee80211/softmac/ieee80211softmac_wx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

John,

This patch should be applied to wireless-2.6, pushed upstream to 2.6.20. It will also be sent to -stable.

Larry

net/ieee80211/softmac/ieee80211softmac_wx.c +1 -1
index 480d72c..fa2f7da 100644
@@ -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;
 }