diff options
author | Felix Fietkau <[email protected]> | 2022-05-31 21:08:24 +0200 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2022-06-29 11:43:15 +0200 |
commit | f856373e2f31ffd340e47e2b00027bd4070f74b3 (patch) | |
tree | 4ab015f338e797aad4e81c7796ef20a40736f482 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a4926abb787e2ef3ee2997e6ca8844d859478647 (diff) |
wifi: mac80211: do not wake queues on a vif that is being stopped
When a vif is being removed and sdata->bss is cleared, __ieee80211_wake_txqs
can still be called on it, which crashes as soon as sdata->bss is being
dereferenced.
To fix this properly, check for SDATA_STATE_RUNNING before waking queues,
and take the fq lock when setting it (to ensure that __ieee80211_wake_txqs
observes the change when running on a different CPU)
Signed-off-by: Felix Fietkau <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions