From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D59FF26A1AF; Tue, 8 Apr 2025 12:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744117031; cv=none; b=inlw6y1LM/Dd/cK9DQ+VpanOBRp6PulegsHQc+LkFhbPnI4drz+dvRl0Iryv8ywMiDfhgFpvV5NkepTnJhjjIVUnsxZdyqDlgzsCFvjAmEHrop0lqZhNL/7Qf9kZ0W0MOYLXzpyN3p+CsErVA4ltyagoRVpaFOWJ3yu9/ZrRhV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744117031; c=relaxed/simple; bh=gyme9mgD2y2h1ml0ic2BjrH9toqUKkGYPbqXp3KqOgk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bVzcgQTgQEqSqz1POEKGB6gXz+vdegUFAiDrNNwiBG+w1X/LHPilNTWlq1DqQte28/Wy1t/GWU+Gl1qF0nuOAEttB+ZdiMyviwZ5J/ilblgnaAgWv3KxYmwX9RU5ZW1klnNg6gbeqE5GG1wPN+1Ox9sMhaJO6fOypnk2IwtsWMg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x3hIwAD9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x3hIwAD9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63E62C4CEE5; Tue, 8 Apr 2025 12:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744117031; bh=gyme9mgD2y2h1ml0ic2BjrH9toqUKkGYPbqXp3KqOgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x3hIwAD9OlZR0gdgQ+FYonNH8NEUpoZ6s1bdA+3rLVLEyAyboPTFHHQEFOYzpZ/wE +ViQzFmTOE87x1SjAzoYrTVn75zR807AM9Q9mwiSd8nh762KQQ8hC37ffCSeRFY9hB KuwHPSfvAjrGjWXWPPAqxLN4GZGbAyskoKmdIvAk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Wetzel , kernel test robot , Johannes Berg Subject: [PATCH 6.12 360/423] wifi: mac80211: Fix sparse warning for monitor_sdata Date: Tue, 8 Apr 2025 12:51:26 +0200 Message-ID: <20250408104854.242823904@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104845.675475678@linuxfoundation.org> References: <20250408104845.675475678@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ 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 @@ -120,7 +120,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);