aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2021-09-24 14:24:14 -0500
committerTakashi Iwai <[email protected]>2021-09-28 10:20:25 +0200
commit1465d06a6d8580e73ae65f8590392df58c5ed2fd (patch)
tree042c8e47d7288fa496cd4158997243d54636d0ad /tools/perf/scripts/python
parent882e013a32ecdad7877bfb1669cd51ee052f3369 (diff)
ALSA: hda: hdac_stream: fix potential locking issue in snd_hdac_stream_assign()
The fields 'opened', 'running', 'assigned_key' are all protected by a spinlock, but the spinlock is not taken when looking for a stream. This can result in a possible race between assign() and release(). Fix by taking the spinlock before walking through the bus stream list. Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions