diff --git a/net/wireless/scan.c b/net/wireless/scan.c index a8339ed52404..dcf7cfb9ba6b 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -1917,6 +1917,7 @@ cfg80211_update_known_bss(struct cfg80211_registered_device *rdev, f = rcu_access_pointer(new->pub.beacon_ies); kfree_rcu((struct cfg80211_bss_ies *)f, rcu_head); + RCU_INIT_POINTER(new->pub.beacon_ies, NULL); return false; }