Skip to contentSkip to conversation

ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie

PATCH In review Ulrich Kunitz 3 participants 4 messages Dec 10, 2006

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

PATCH 1/1 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).

---
 net/ieee80211/softmac/ieee80211softmac_wx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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;
 }
Signature · 1 line
1.4.1
#1 lore raw

This is

and also to be put into the -stable tree.

Quoted 22 lines · Ulrich Kunitz

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(-)
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;
 }
Signature · 1 line
Greetings Michael.
Acked-by on v1 1/1
#2 lore raw
In reply to Ulrich Kunitz
Quoted 3 lines · Ulrich Kunitz

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

Looks good, I wonder how this slipped in.

Quoted 18 lines
---
 net/ieee80211/softmac/ieee80211softmac_wx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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;
 }
#3 lore raw
Quoted 6 lines · Johannes Berg
Quoted 3 lines · Ulrich Kunitz

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

Looks good, I wonder how this slipped in.

Nobody calls this function, as it's rather useless. ;)

Quoted 21 lines
Quoted 18 lines
---
 net/ieee80211/softmac/ieee80211softmac_wx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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;
 }
Signature · 1 line
Greetings Michael.