Skip to content

Commit 587d67f

Browse files
committed
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: beb4597 ("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 parent 9b714a5 commit 587d67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static void snd_timer_close_locked(struct snd_timer_instance *timeri,
409409
struct snd_timer *timer = timeri->timer;
410410

411411
if (timer) {
412-
guard(spinlock)(&timer->lock);
412+
guard(spinlock_irq)(&timer->lock);
413413
timeri->flags |= SNDRV_TIMER_IFLG_DEAD;
414414
}
415415

0 commit comments

Comments
 (0)