diff options
| author | Takashi Iwai <[email protected]> | 2024-03-15 10:14:42 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2024-03-15 10:16:47 +0000 |
| commit | 587d67fd929ad89801bcc429675bda90d53f6592 (patch) | |
| tree | f08d52a695fb2f89cf3aac5171ae8bad820b28d8 /sound/core | |
| parent | ALSA: hda/realtek: Add quirk for Lenovo Yoga 9 14IMH9 (diff) | |
| download | kernel-587d67fd929ad89801bcc429675bda90d53f6592.tar.gz kernel-587d67fd929ad89801bcc429675bda90d53f6592.zip | |
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: [email protected]
Closes: http://lore.kernel.org/r/[email protected]
Message-ID: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/core')
| -rw-r--r-- | sound/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index 15b07d09c4b7..4d2ee99c12a3 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -409,7 +409,7 @@ static void snd_timer_close_locked(struct snd_timer_instance *timeri, struct snd_timer *timer = timeri->timer; if (timer) { - guard(spinlock)(&timer->lock); + guard(spinlock_irq)(&timer->lock); timeri->flags |= SNDRV_TIMER_IFLG_DEAD; } |
