]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: pcmtest: stop timer before buffer is released
authorIvan Orlov <ivan.orlov0322@gmail.com>
Wed, 6 Dec 2023 22:32:11 +0000 (22:32 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Dec 2023 07:33:06 +0000 (08:33 +0100)
commiteb99b1b72a424a79f56c972e0fd7ad01fe93a008
treef20e302ce6bb9de96d03a885c2e71e2b6a30ed73
parent8804fa04a492f4176ea407390052292912227820
ALSA: pcmtest: stop timer before buffer is released

Stop timer in the 'trigger' and 'sync_stop' callbacks since we want
the timer to be stopped before the DMA buffer is released. Otherwise,
it could trigger a kernel panic in some circumstances, for instance
when the DMA buffer is already released but the timer callback is
still running.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20231206223211.12761-1-ivan.orlov0322@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcmtest.c