aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2010-04-04 13:59:30 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-06 03:12:30 -0400
commit2f787b0b76bf5de2eaa3ca3a29d89123ae03c856 (patch)
tree6b842dccc0c5a8e1e26ed41811bac8cbff8a474c /net/mac80211
parente4008276fddd10445ff06707694a938cb7f35ed4 (diff)
mac80211: Ensure initializing private mc_list in prepare_multicast().
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> Reviewed-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 84ad249a4e2e..0b82cd2f781e 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,
388 local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; 388 local->uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN;
389 389
390 INIT_LIST_HEAD(&local->interfaces); 390 INIT_LIST_HEAD(&local->interfaces);
391
392 __hw_addr_init(&local->mc_list);
393
391 mutex_init(&local->iflist_mtx); 394 mutex_init(&local->iflist_mtx);
392 mutex_init(&local->scan_mtx); 395 mutex_init(&local->scan_mtx);
393 396