UPSTREAM: wifi: nl80211: acquire wdev mutex for dump_survey
At least the quantenna driver calls wdev_chandef() here
which now requires the lock, so acquire it.
Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 253289327
Change-Id: Ib8205cf6e8b8b55a4329238304dcc39c4e3f8a34
(cherry picked from commit 284b38b6902a7154e3675482418a7b6df47808fe)
Signed-off-by: Kiran Kumar Lokere <quic_klokere@quicinc.com>
This commit is contained in:
@@ -10299,7 +10299,9 @@ static int nl80211_dump_survey(struct sk_buff *skb, struct netlink_callback *cb)
|
||||
}
|
||||
|
||||
while (1) {
|
||||
wdev_lock(wdev);
|
||||
res = rdev_dump_survey(rdev, wdev->netdev, survey_idx, &survey);
|
||||
wdev_unlock(wdev);
|
||||
if (res == -ENOENT)
|
||||
break;
|
||||
if (res)
|
||||
|
||||
Reference in New Issue
Block a user