]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: check wiphy mutex is held for wdev mutex
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 11:59:56 +0000 (13:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2024 11:23:20 +0000 (13:23 +0200)
commit89795eeba6d13b5ba432425dd43c34c66f2cebde
tree940f9c3186c1d08a4cf27d27db8090a393d97f2f
parentb4373d9235b627a8d6fe79f5a3a961fb1fa8b2fd
wifi: cfg80211: check wiphy mutex is held for wdev mutex

[ Upstream commit 1474bc87fe57deac726cc10203f73daa6c3212f7 ]

This might seem pretty pointless rather than changing the locking
immediately, but it seems safer to run for a while with checks and
the old locking scheme, and then remove the wdev lock later.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/core.h