[PATCH] 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).

Signed-off-by: Ulrich Kunitz <kune@deine-taler.de>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
This commit is contained in:
Ulrich Kunitz
2006-12-10 18:39:28 +01:00
committed by Chris Wright
parent 18576724d3
commit 4ad328ffdc
+1 -1
View File
@@ -463,7 +463,7 @@ ieee80211softmac_wx_get_genie(struct net_device *dev,
err = -E2BIG;
}
spin_unlock_irqrestore(&mac->lock, flags);
mutex_lock(&mac->associnfo.mutex);
mutex_unlock(&mac->associnfo.mutex);
return err;
}