* [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast().
@ 2010-04-05 3:59 YOSHIFUJI Hideaki
2010-04-06 7:09 ` Jiri Pirko
0 siblings, 1 reply; 4+ messages in thread
From: YOSHIFUJI Hideaki @ 2010-04-05 3:59 UTC (permalink / raw)
To: davem; +Cc: jpirko, yoshfuji, netdev
Fix kernel panic by NULL pointer dereference in the context of
ieee80211_ops->prepare_multicast().
This bug was introduced by commit 22bedad3c.. ("net: convert
multicast list to list_head").
Call __hw_addr_init() in ieee80211_alloc_hw() to initialize
list_head of private device multicast list, like we do in
bond_init().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
net/mac80211/main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 84ad249..0b82cd2 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -388,6 +388,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN;
INIT_LIST_HEAD(&local->interfaces);
+
+ __hw_addr_init(&local->mc_list);
+
mutex_init(&local->iflist_mtx);
mutex_init(&local->scan_mtx);
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast().
2010-04-05 3:59 [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast() YOSHIFUJI Hideaki
@ 2010-04-06 7:09 ` Jiri Pirko
2010-04-06 7:12 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Pirko @ 2010-04-06 7:09 UTC (permalink / raw)
To: YOSHIFUJI Hideaki; +Cc: davem, netdev
Mon, Apr 05, 2010 at 05:59:30AM CEST, yoshfuji@linux-ipv6.org wrote:
>Fix kernel panic by NULL pointer dereference in the context of
>ieee80211_ops->prepare_multicast().
>
>This bug was introduced by commit 22bedad3c.. ("net: convert
>multicast list to list_head").
>
>Call __hw_addr_init() in ieee80211_alloc_hw() to initialize
>list_head of private device multicast list, like we do in
>bond_init().
>
>Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
>---
> net/mac80211/main.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>diff --git a/net/mac80211/main.c b/net/mac80211/main.c
>index 84ad249..0b82cd2 100644
>--- a/net/mac80211/main.c
>+++ b/net/mac80211/main.c
>@@ -388,6 +388,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
> local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN;
>
> INIT_LIST_HEAD(&local->interfaces);
>+
>+ __hw_addr_init(&local->mc_list);
>+
> mutex_init(&local->iflist_mtx);
> mutex_init(&local->scan_mtx);
>
Whoups, missed this bit. Thanks a lot.
Rewieved-by: Jiri Pirko <jpirko@redhat.com>
>--
>1.5.6.5
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast().
2010-04-06 7:09 ` Jiri Pirko
@ 2010-04-06 7:12 ` David Miller
2010-04-06 7:17 ` Jiri Pirko
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2010-04-06 7:12 UTC (permalink / raw)
To: jpirko; +Cc: yoshfuji, netdev
From: Jiri Pirko <jpirko@redhat.com>
Date: Tue, 6 Apr 2010 09:09:23 +0200
> Whoups, missed this bit. Thanks a lot.
>
> Rewieved-by: Jiri Pirko <jpirko@redhat.com>
>
Applied, and patchwork doesn't know what "Rewieved-by" is so
I fixed the typo and added it to the changelog :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast().
2010-04-06 7:12 ` David Miller
@ 2010-04-06 7:17 ` Jiri Pirko
0 siblings, 0 replies; 4+ messages in thread
From: Jiri Pirko @ 2010-04-06 7:17 UTC (permalink / raw)
To: David Miller; +Cc: yoshfuji, netdev
Tue, Apr 06, 2010 at 09:12:59AM CEST, davem@davemloft.net wrote:
>From: Jiri Pirko <jpirko@redhat.com>
>Date: Tue, 6 Apr 2010 09:09:23 +0200
>
>> Whoups, missed this bit. Thanks a lot.
>>
>> Rewieved-by: Jiri Pirko <jpirko@redhat.com>
>>
>
>Applied, and patchwork doesn't know what "Rewieved-by" is so
>I fixed the typo and added it to the changelog :-)
Oh my :) Looks like I'm still sleeping...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-06 7:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-05 3:59 [PATCH] mac80211: Ensure initializing private mc_list in prepare_multicast() YOSHIFUJI Hideaki
2010-04-06 7:09 ` Jiri Pirko
2010-04-06 7:12 ` David Miller
2010-04-06 7:17 ` Jiri Pirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).