Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALSA: hda: hdac_stream: fix potential locking issue in snd_hdac_strea…
…m_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]>
- Loading branch information