ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie
Subsystems (2)
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
@@ -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
This is
and also to be put into the -stable tree.
Quoted 22 lines · Ulrich Kunitz
ieee80211softmac_wx_get_genielocks the associnfo mutex at function exit. This patch fixes it. The patch is against Linus' tree (commitaf1713e0).Signed-off-by Ulrich Kunitz <[email protected]>--- net/ieee80211/softmac/ieee80211softmac_wx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/ieee80211/softmac/ieee80211softmac_wx.c +1
-1@@ -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.
Quoted 3 lines · Ulrich Kunitz
ieee80211softmac_wx_get_genielocks the associnfo mutex at function exit. This patch fixes it. The patch is against Linus' tree (commitaf1713e0).
Looks good, I wonder how this slipped in.
Quoted 18 lines
Signed-off-by Ulrich Kunitz <[email protected]>--- net/ieee80211/softmac/ieee80211softmac_wx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/ieee80211/softmac/ieee80211softmac_wx.c +1
-1@@ -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; }
Quoted 6 lines · Johannes Berg
Quoted 3 lines · Ulrich Kunitz
ieee80211softmac_wx_get_genielocks the associnfo mutex at function exit. This patch fixes it. The patch is against Linus' tree (commitaf1713e0).Looks good, I wonder how this slipped in.
Nobody calls this function, as it's rather useless. ;)
Quoted 21 lines
Acked-by Johannes Berg <[email protected]>Quoted 18 lines
Signed-off-by Ulrich Kunitz <[email protected]>--- net/ieee80211/softmac/ieee80211softmac_wx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/ieee80211/softmac/ieee80211softmac_wx.c +1
-1@@ -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.