mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
91edb0cd1b
commit
dd9465b108
@@ -216,7 +216,9 @@ static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data)
|
|||||||
{
|
{
|
||||||
struct cfg80211_registered_device *rdev = data;
|
struct cfg80211_registered_device *rdev = data;
|
||||||
|
|
||||||
|
wiphy_lock(&rdev->wiphy);
|
||||||
rdev_rfkill_poll(rdev);
|
rdev_rfkill_poll(rdev);
|
||||||
|
wiphy_unlock(&rdev->wiphy);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cfg80211_stop_p2p_device(struct cfg80211_registered_device *rdev,
|
void cfg80211_stop_p2p_device(struct cfg80211_registered_device *rdev,
|
||||||
|
|||||||
Reference in New Issue
Block a user