Skip to content

Commit 861d044

Browse files
alexw65500jmberg-intel
authored andcommitted
wifi: mac80211: Fix sparse warning for monitor_sdata
Use rcu_access_pointer() to avoid sparse warning in drv_remove_interface(). Signed-off-by: Alexander Wetzel <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 646262c ("wifi: mac80211: remove debugfs dir for virtual monitor") Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 130067e commit 861d044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/driver-ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void drv_remove_interface(struct ieee80211_local *local,
121121
* The virtual monitor interface doesn't get a debugfs
122122
* entry, so it's exempt here.
123123
*/
124-
if (sdata != local->monitor_sdata)
124+
if (sdata != rcu_access_pointer(local->monitor_sdata))
125125
ieee80211_debugfs_recreate_netdev(sdata,
126126
sdata->vif.valid_links);
127127

0 commit comments

Comments
 (0)