]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: avoid lockdep checking when removing deflink
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 19 Jun 2023 13:26:50 +0000 (16:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:16 +0000 (16:26 +0200)
commit602a7b48b42f8477df2cff5559c949d884211114
tree7073056b43e63822013e6bbe21052960a48e7518
parent4da895eb919bb7230cdc9d30454da8f6aba6589d
wifi: mac80211: avoid lockdep checking when removing deflink

commit b8b80770b26c4591f20f1cde3328e5f1489c4488 upstream.

struct sta_info may be removed without holding sta_mtx if it has not
yet been inserted. To support this, only assert that the lock is held
for links other than the deflink.

This fixes lockdep issues that may be triggered in error cases.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230619161906.cdd81377dea0.If5a6734b4b85608a2275a09b4f99b5564d82997f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hanne-Lotta Mäenpää <hannelotta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c