[PATCH] ALSA: pcm: Add stream lock during PCM reset ioctl operations
Jaroslav Kysela
perex at perex.cz
Tue Mar 22 18:25:21 CET 2022
On 22. 03. 22 18:13, Takashi Iwai wrote:
> snd_pcm_reset() is a non-atomic operation, and it's allowed to run
> during the PCM stream running. It implies that the manipulation of
> hw_ptr and other parameters might be racy.
>
> This patch adds the PCM stream lock at appropriate places in
> snd_pcm_*_reset() actions for covering that.
Reviewed-by: Jaroslav Kysela <perex at perex.cz>
Thanks,
Jaroslav
--
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
More information about the Alsa-devel
mailing list