diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2021-09-24 21:24:14 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-09-28 10:20:25 +0200 |
commit | 1465d06a6d8580e73ae65f8590392df58c5ed2fd (patch) | |
tree | 042c8e47d7288fa496cd4158997243d54636d0ad /sound/hda/ext/hdac_ext_stream.c | |
parent | ALSA: usb-audio: fix comment reference in __uac_clock_find_source (diff) | |
download | linux-1465d06a6d8580e73ae65f8590392df58c5ed2fd.tar.xz linux-1465d06a6d8580e73ae65f8590392df58c5ed2fd.zip |
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 <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210924192417.169243-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/ext/hdac_ext_stream.c')
0 files changed, 0 insertions, 0 deletions