diff options
author | Miaoqing Pan <[email protected]> | 2021-02-18 14:45:09 +0800 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2021-02-24 08:53:08 +0200 |
commit | 3808a18043a8d16ea1bc0ebe59c864f73413dbbf (patch) | |
tree | cd83d6ec6e7337a95d9f7459da65cdcdc0440abf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 097e9f0714555e5da72c7ebc5377107fdf10e57d (diff) |
ath11k: fix potential wmi_mgmt_tx_queue race condition
There is a potential race condition between skb_queue_len()
and skb_queue_tail(), the former may get old value before
updated by the latter.
So use skb_queue_len_lockless() instead. And also use '>=',
in case we queue a few SKBs simultaneously.
Found while discussing a similar fix for ath10k:
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/
No functional changes, compile tested only.
Signed-off-by: Miaoqing Pan <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions