wifi: cfg80211: lock wiphy mutex for rfkill poll
authorJohannes Berg <johannes.berg@intel.com>
Wed, 8 Nov 2023 12:41:25 +0000 (13:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:37 +0000 (11:51 +0100)
commit35a59d349ab0112cd002157104c9dbe296a5ddf5
treed089ecb2ebb2107110f166c11c2a12c96eba5cce
parent5814deb5a5b0b0072bab91eb3ec9c9a799290514
wifi: cfg80211: lock wiphy mutex for rfkill poll

[ Upstream commit 8e2f6f2366219b3304b227bdd2f04b64c92e3e12 ]

We want to guarantee the mutex is held for pretty much
all operations, so ensure that here as well.

Reported-by: syzbot+7e59a5bfc7a897247e18@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/core.c