aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2022-09-19 14:10:40 +0200
committerTakashi Iwai <[email protected]>2022-09-20 08:08:14 +0200
commitac3467ad7f8734a21b65fa1852316a9b1b8c1fad (patch)
tree0a3e95b90048cd5ec7dd71369021b627eb7d600d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent53f4f6b4e56d5fb6ef95a7e14c10ec244a79b996 (diff)
ALSA: hda: ext: fix locking in stream_release
The snd_hdac_ext_stream_release() routine uses the bus reg_lock, but releases it before calling snd_hdac_stream_release() where the bus reg_lock is taken again. This creates a timing window where the link stream release could test an invalid 'opened' boolean status and fail to recouple the host and link parts. Fix by exposing a locked version of snd_hdac_stream_release() and use it without releasing the spinlock. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions