diff options
author | Rameshkumar Sundaram <quic_ramess@quicinc.com> | 2022-04-11 11:07:51 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-04-11 11:55:36 +0200 |
commit | a5199b5626cd6913cf8776a835bc63d40e0686ad (patch) | |
tree | 4b34baeeab52e73a8d54370be8c091d6a6aee703 /net/mac80211/debugfs_sta.c | |
parent | nl80211: correctly check NL80211_ATTR_REG_ALPHA2 size (diff) | |
download | linux-a5199b5626cd6913cf8776a835bc63d40e0686ad.tar.xz linux-a5199b5626cd6913cf8776a835bc63d40e0686ad.zip |
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.
Fixes: 0b8fb8235be8 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Link: https://lore.kernel.org/r/1649668071-9370-1-git-send-email-quic_ramess@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
0 files changed, 0 insertions, 0 deletions