From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Subject: Re: [PATCH] ieee80211softmac: Fix mutex_lock at exit of ieee80211_softmac_get_genie Date: Sun, 10 Dec 2006 18:39:28 +0100 Message-ID: <200612101839.28687.mb@bu3sch.de> References: <20061210172701.GA29871@p15091797.pureserver.info> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, "John W. Linville" , Andrew Morton , Johannes Berg , dsd@gentoo.org Return-path: Received: from static-ip-62-75-166-246.inaddr.intergenia.de ([62.75.166.246]:52660 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762278AbWLJRkQ (ORCPT ); Sun, 10 Dec 2006 12:40:16 -0500 To: stable@kernel.org In-Reply-To: <20061210172701.GA29871@p15091797.pureserver.info> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This is Signed-off-by: Michael Buesch and also to be put into the -stable tree. On Sunday 10 December 2006 18:27, Ulrich Kunitz wrote: > 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 > --- > net/ieee80211/softmac/ieee80211softmac_wx.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c > index 480d72c..fa2f7da 100644 > --- a/net/ieee80211/softmac/ieee80211softmac_wx.c > +++ b/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; > } -- Greetings Michael.