aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index ba2bf8f0a347..22b11786327a 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -1327,10 +1327,9 @@ ieee80211_rx_bss_add(struct net_device *dev, u8 *bssid)
1327 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); 1327 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
1328 struct ieee80211_sta_bss *bss; 1328 struct ieee80211_sta_bss *bss;
1329 1329
1330 bss = kmalloc(sizeof(*bss), GFP_ATOMIC); 1330 bss = kzalloc(sizeof(*bss), GFP_ATOMIC);
1331 if (!bss) 1331 if (!bss)
1332 return NULL; 1332 return NULL;
1333 memset(bss, 0, sizeof(*bss));
1334 atomic_inc(&bss->users); 1333 atomic_inc(&bss->users);
1335 atomic_inc(&bss->users); 1334 atomic_inc(&bss->users);
1336 memcpy(bss->bssid, bssid, ETH_ALEN); 1335 memcpy(bss->bssid, bssid, ETH_ALEN);