diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 952d8dd0676c..7ba352e3ffe0 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -1326,10 +1326,9 @@ ieee80211_rx_bss_add(struct net_device *dev, u8 *bssid) | |||
1326 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 1326 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
1327 | struct ieee80211_sta_bss *bss; | 1327 | struct ieee80211_sta_bss *bss; |
1328 | 1328 | ||
1329 | bss = kmalloc(sizeof(*bss), GFP_ATOMIC); | 1329 | bss = kzalloc(sizeof(*bss), GFP_ATOMIC); |
1330 | if (!bss) | 1330 | if (!bss) |
1331 | return NULL; | 1331 | return NULL; |
1332 | memset(bss, 0, sizeof(*bss)); | ||
1333 | atomic_inc(&bss->users); | 1332 | atomic_inc(&bss->users); |
1334 | atomic_inc(&bss->users); | 1333 | atomic_inc(&bss->users); |
1335 | memcpy(bss->bssid, bssid, ETH_ALEN); | 1334 | memcpy(bss->bssid, bssid, ETH_ALEN); |