Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f9d7265 authored by Rameshkumar Sundaram's avatar Rameshkumar Sundaram Committed by Lee Jones
Browse files

UPSTREAM: cfg80211: hold bss_lock while updating nontrans_list



Synchronize additions to nontrans_list of transmitting BSS with
bss_lock to avoid races. Also when cfg80211_add_nontrans_list() fails
__cfg80211_unlink_bss() needs bss_lock to be held (has lockdep assert
on bss_lock). So protect the whole block with bss_lock to avoid
races and warnings. Found during code review.

Bug: 254441685
Fixes: 0b8fb8235be8 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Signed-off-by: default avatarRameshkumar Sundaram <quic_ramess@quicinc.com>
Link: https://lore.kernel.org/r/1649668071-9370-1-git-send-email-quic_ramess@quicinc.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit a5199b5626cd6913cf8776a835bc63d40e0686ad)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I06b4d5f79fa97b11b2aff61e4f060e8eaca719b2
parent ee2bf3cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment