Message ID | 20241022161742.7c34b2037726.I121b9cdb7eb180802eafc90b493522950d57ee18@changeid |
---|---|
State | New |
Headers | show |
Series | wifi: cfg80211: clear wdev->cqm_config pointer on free | expand |
diff --git a/net/wireless/core.c b/net/wireless/core.c index 4c8d8f167409..d3c7b7978f00 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -1280,6 +1280,7 @@ static void _cfg80211_unregister_wdev(struct wireless_dev *wdev, /* deleted from the list, so can't be found from nl80211 any more */ cqm_config = rcu_access_pointer(wdev->cqm_config); kfree_rcu(cqm_config, rcu_head); + RCU_INIT_POINTER(wdev->cqm_config, NULL); /* * Ensure that all events have been processed and