Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: timer: Fix missing irq-disable at closing

The conversion to guard macro dropped the irq-disablement at closing
mistakenly, which may lead to a race. Fix it.

Fixes: beb45974dd49 ("ALSA: timer: Use guard() for locking")
Reported-by: syzbot+28c1a5a5b041a754b947@syzkaller.appspotmail.com
Closes: http://lore.kernel.org/r/0000000000000b9a510613b0145f@google.com
Message-ID: <20240315101447.18395-1-tiwai@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -1
+1 -1
sound/core/timer.c
··· 409 409 struct snd_timer *timer = timeri->timer; 410 410 411 411 if (timer) { 412 - guard(spinlock)(&timer->lock); 412 + guard(spinlock_irq)(&timer->lock); 413 413 timeri->flags |= SNDRV_TIMER_IFLG_DEAD; 414 414 } 415 415