summaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 2b608044ae23..1f11907dc528 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -354,11 +354,11 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,
354 sdata_lock(sdata); 354 sdata_lock(sdata);
355 355
356 /* Copy the addresses to the bss_conf list */ 356 /* Copy the addresses to the bss_conf list */
357 ifa = idev->ifa_list; 357 ifa = rtnl_dereference(idev->ifa_list);
358 while (ifa) { 358 while (ifa) {
359 if (c < IEEE80211_BSS_ARP_ADDR_LIST_LEN) 359 if (c < IEEE80211_BSS_ARP_ADDR_LIST_LEN)
360 bss_conf->arp_addr_list[c] = ifa->ifa_address; 360 bss_conf->arp_addr_list[c] = ifa->ifa_address;
361 ifa = ifa->ifa_next; 361 ifa = rtnl_dereference(ifa->ifa_next);
362 c++; 362 c++;
363 } 363 }
364 364