diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index a0a938145dcc87397cb4ecfad5f59b1c5fb28dbc..a9bb6eb8c3e0f8c3f3b8e623a91817f2579e74fe 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c @@ -1094,7 +1094,7 @@ int ieee80211_request_sched_scan_stop(struct ieee80211_sub_if_data *sdata) if (rcu_access_pointer(local->sched_scan_sdata)) { ret = drv_sched_scan_stop(local, sdata); if (!ret) - rcu_assign_pointer(local->sched_scan_sdata, NULL); + RCU_INIT_POINTER(local->sched_scan_sdata, NULL); } out: mutex_unlock(&local->mtx);