From 203fd4353650f65d2b40ea904611c8fac7e08f9b Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 8 Apr 2025 08:48:40 +0200 Subject: [PATCH] 6.13-stable patches added patches: wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch --- queue-6.13/series | 1 + ...fix-sparse-warning-for-monitor_sdata.patch | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 queue-6.13/wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch diff --git a/queue-6.13/series b/queue-6.13/series index 079a893966..b90007051a 100644 --- a/queue-6.13/series +++ b/queue-6.13/series @@ -429,3 +429,4 @@ staging-gpib-fix-oops-after-disconnect-in-agilent-us.patch tty-serial-fsl_lpuart-use-u32-and-u8-for-register-va.patch tty-serial-fsl_lpuart-use-port-struct-directly-to-si.patch tty-serial-lpuart-only-disable-cts-instead-of-overwr.patch +wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch diff --git a/queue-6.13/wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch b/queue-6.13/wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch new file mode 100644 index 0000000000..f3eb4de467 --- /dev/null +++ b/queue-6.13/wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch @@ -0,0 +1,34 @@ +From 861d0445e72e9e33797f2ceef882c74decb16a87 Mon Sep 17 00:00:00 2001 +From: Alexander Wetzel +Date: Thu, 13 Feb 2025 22:43:30 +0100 +Subject: wifi: mac80211: Fix sparse warning for monitor_sdata + +From: Alexander Wetzel + +commit 861d0445e72e9e33797f2ceef882c74decb16a87 upstream. + +Use rcu_access_pointer() to avoid sparse warning in +drv_remove_interface(). + +Signed-off-by: Alexander Wetzel +Reported-by: kernel test robot +Closes: https://lore.kernel.org/oe-kbuild-all/202502130534.bVrZZBK0-lkp@intel.com/ +Fixes: 646262c71aca ("wifi: mac80211: remove debugfs dir for virtual monitor") +Link: https://patch.msgid.link/20250213214330.6113-1-Alexander@wetzel-home.de +Signed-off-by: Johannes Berg +Signed-off-by: Greg Kroah-Hartman +--- + net/mac80211/driver-ops.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/net/mac80211/driver-ops.c ++++ b/net/mac80211/driver-ops.c +@@ -121,7 +121,7 @@ void drv_remove_interface(struct ieee802 + * The virtual monitor interface doesn't get a debugfs + * entry, so it's exempt here. + */ +- if (sdata != local->monitor_sdata) ++ if (sdata != rcu_access_pointer(local->monitor_sdata)) + ieee80211_debugfs_recreate_netdev(sdata, + sdata->vif.valid_links); + -- 2.47.3