From: Ulrich Kunitz ieee80211softmac_wx_get_genie locks the associnfo mutex at function exit. Signed-off-by: Ulrich Kunitz Acked-by: Michael Buesch Cc: Cc: "John W. Linville" Signed-off-by: Andrew Morton --- net/ieee80211/softmac/ieee80211softmac_wx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN net/ieee80211/softmac/ieee80211softmac_wx.c~ieee80211softmac-fix-mutex_lock-at-exit-of-ieee80211_softmac_get_genie net/ieee80211/softmac/ieee80211softmac_wx.c --- a/net/ieee80211/softmac/ieee80211softmac_wx.c~ieee80211softmac-fix-mutex_lock-at-exit-of-ieee80211_softmac_get_genie +++ a/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; } _