From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Fix sta_mtx unlocking on insert STA failure path
Date: Sun, 07 Mar 2010 20:02:47 +0100 [thread overview]
Message-ID: <1267988567.3912.1.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20100306163508.GA9236@jm.kir.nu>
On Sat, 2010-03-06 at 18:35 +0200, Jouni Malinen wrote:
> Commit 34e895075e21be3e21e71d6317440d1ee7969ad0 introduced sta_mtx
> locking into sta_info_insert() (now sta_info_insert_rcu), but forgot
> to unlock this mutex on one of the error paths. Fix this by adding
> the missing mutex_unlock() call for the case where STA insert fails
> due to an entry existing already. This may happen at least in AP mode
> when a STA roams between two BSSes (vifs).
>
> Signed-off-by: Jouni Malinen <j@w1.fi>
Thanks.
> ---
> net/mac80211/sta_info.c | 1 +
> 1 file changed, 1 insertion(+)
>
> By the way, that roaming between two vifs did not work either, but
> regardless, fixing missing mutex_unlock is of higher priority.. The STA
> entry was not updated to point to the correct dev when the STA roamed
> from one BSS to another one (both BSSes running on the same wiphy). To
> be more exact, I think it was updated once, but not when roaming back to
> the original BSS.
This must be due to the sta_find_bss thing Felix did because hostapd
wasn't using the right ifindex...
johannes
next prev parent reply other threads:[~2010-03-07 19:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-06 16:35 [PATCH] mac80211: Fix sta_mtx unlocking on insert STA failure path Jouni Malinen
2010-03-07 19:02 ` Johannes Berg [this message]
2010-03-07 21:23 ` Jouni Malinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1267988567.3912.1.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=j@w1.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox