Message ID | 20231108134124.de02800a7b66.I8caff5f6d6a5212bca99afad1a191cf2321cdf28@changeid |
---|---|
State | New |
Headers | show |
Series | wifi: cfg80211: lock wiphy mutex for rfkill poll | expand |
diff --git a/net/wireless/core.c b/net/wireless/core.c index 758c9a2a12c0..3f756ce46602 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -221,7 +221,9 @@ static void cfg80211_rfkill_poll(struct rfkill *rfkill, void *data) { struct cfg80211_registered_device *rdev = data; + wiphy_lock(&rdev->wiphy); rdev_rfkill_poll(rdev); + wiphy_unlock(&rdev->wiphy); } void cfg80211_stop_p2p_device(struct cfg80211_registered_device *rdev,