diff options
| author | Niels Dossche <[email protected]> | 2022-03-21 12:58:23 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2022-03-23 10:51:52 +0200 |
| commit | 2db80f93869d491be57cbc2b36f30d0d3a0e5bde (patch) | |
| tree | 258bbf8f160cb70cd9bc1c85e31d07bd8c975e04 /tools/perf/scripts/python/bin | |
| parent | 72a9bff386545d3f8e9c432cb8e036272ad4e1fa (diff) | |
ath11k: acquire ab->base_lock in unassign when finding the peer by addr
ath11k_peer_find_by_addr states via lockdep that ab->base_lock must be
held when calling that function in order to protect the list. All
callers except ath11k_mac_op_unassign_vif_chanctx have that lock
acquired when calling ath11k_peer_find_by_addr. That lock is also not
transitively held by a path towards ath11k_mac_op_unassign_vif_chanctx.
The solution is to acquire the lock when calling
ath11k_peer_find_by_addr inside ath11k_mac_op_unassign_vif_chanctx.
I am currently working on a static analyser to detect missing locks and
this was a reported case. I manually verified the report by looking at
the code, but I do not have real hardware so this is compile tested
only.
Fixes: 701e48a43e15 ("ath11k: add packet log support for QCA6390")
Signed-off-by: Niels Dossche <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions