]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: timer: Unconditionally unlink slave instances, too
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Nov 2021 09:15:17 +0000 (10:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Nov 2021 10:27:27 +0000 (11:27 +0100)
commit969363a287be570a3a0d04229d69ff806f4d7e2d
treec6e58a9e896d4d96c45eaf983797a124bebb2c2b
parent475ba7eb76c6ee18c326116b745b58b7462d8e95
ALSA: timer: Unconditionally unlink slave instances, too

Like the previous fix (commit 2e4f26f29d14 "ALSA: timer: Fix
use-after-free problem"), we have to unlink slave timer instances
immediately at snd_timer_stop(), too.  Otherwise it may leave a stale
entry in the list if the slave instance is freed before actually
running.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211105091517.21733-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c