]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: fix locking in sched scan stop work
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:34:47 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:48 +0000 (11:16 +0200)
commit1a3ceea31b5783487d4490b3741adff3455e0bf4
treec857196dbd24fb9ddb43162a3286e48bf4261b39
parentf372fe8d4917c8124f1febdaf59f2da1dd24ba7a
wifi: cfg80211: fix locking in sched scan stop work

[ Upstream commit 3e54ed8247c94c8bdf370bd872bd9dfe72b1b12b ]

This should use wiphy_lock() now instead of acquiring the
RTNL, since cfg80211_stop_sched_scan_req() now needs that.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/core.c