From: Lennert Buytenhek <buytenh@wantstofly.org>
To: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Cc: Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [PATCH 10/29] mwl8k: fix mwl8k_configure_filter() parameter lifetime issue
Date: Tue, 18 Aug 2009 06:00:39 +0200 [thread overview]
Message-ID: <20090818040039.GA4116@mail.wantstofly.org> (raw)
In-Reply-To: <20090818035233.GO18639@mail.wantstofly.org>
On Tue, Aug 18, 2009 at 05:52:33AM +0200, Lennert Buytenhek wrote:
> mwl8k_configure_filter() passes pointers to total_flags and the
> multicast address list to a workqueue function, while there is no
> guarantee that those pointers will still be valid by the time the
> workqueue function runs.
>
> Solve this by passing total_flags by value, and by passing an
> already built multicast address setup command packet to the workqueue
> function so that we don't have to look at the multicast address list
> itself outside of mwl8k_configure_filter().
>
> Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
This will clash with:
http://article.gmane.org/gmane.linux.kernel.wireless.general/38141
But that is easy to fix up. (The easiest would probably be to not
apply the mwl8k part of that patch, and I'll send a followup patch
to implement ->prepare_multicast() for mwl8k.)
next prev parent reply other threads:[~2009-08-18 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 3:52 [PATCH 10/29] mwl8k: fix mwl8k_configure_filter() parameter lifetime issue Lennert Buytenhek
2009-08-18 4:00 ` Lennert Buytenhek [this message]
2009-08-18 7:23 ` Johannes Berg
2009-08-18 8:13 ` Lennert Buytenhek
2009-08-18 9:54 ` Lennert Buytenhek
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=20090818040039.GA4116@mail.wantstofly.org \
--to=buytenh@wantstofly.org \
--cc=johannes@sipsolutions.net \
--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