]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.13-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Apr 2025 06:48:40 +0000 (08:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Apr 2025 06:48:40 +0000 (08:48 +0200)
added patches:
wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch

queue-6.13/series
queue-6.13/wifi-mac80211-fix-sparse-warning-for-monitor_sdata.patch [new file with mode: 0644]

index 079a893966f4296af40a35b82d5d55e422ee3e4f..b90007051a97e0cc7f52539f66462078ccfb3782 100644 (file)
@@ -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 (file)
index 0000000..f3eb4de
--- /dev/null
@@ -0,0 +1,34 @@
+From 861d0445e72e9e33797f2ceef882c74decb16a87 Mon Sep 17 00:00:00 2001
+From: Alexander Wetzel <Alexander@wetzel-home.de>
+Date: Thu, 13 Feb 2025 22:43:30 +0100
+Subject: wifi: mac80211: Fix sparse warning for monitor_sdata
+
+From: Alexander Wetzel <Alexander@wetzel-home.de>
+
+commit 861d0445e72e9e33797f2ceef882c74decb16a87 upstream.
+
+Use rcu_access_pointer() to avoid sparse warning in
+drv_remove_interface().
+
+Signed-off-by: Alexander Wetzel <Alexander@wetzel-home.de>
+Reported-by: kernel test robot <lkp@intel.com>
+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 <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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);