aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-02-14 12:13:14 +0100
committerTakashi Iwai <[email protected]>2020-02-14 15:52:59 +0100
commitbb51e669fa49feb5904f452b2991b240ef31bc97 (patch)
tree4a88188713bbfba11e980f00f7cd5fa92019b573 /tools/perf/scripts/python/export-to-sqlite.py
parent0fbb027b44e79700da80e4b8bd1c1914d4796af6 (diff)
ALSA: seq: Avoid concurrent access to queue flags
The queue flags are represented in bit fields and the concurrent access may result in unexpected results. Although the current code should be mostly OK as it's only reading a field while writing other fields as KCSAN reported, it's safer to cover both with a proper spinlock protection. This patch fixes the possible concurrent read by protecting with q->owner_lock. Also the queue owner field is protected as well since it's the field to be protected by the lock itself. Reported-by: [email protected] Reported-by: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions