Skip to content

Commit 43a3542

Browse files
committed
ALSA: seq: Remove spurious WARN_ON() at timer check
The use of snd_BUG_ON() in ALSA sequencer timer may lead to a spurious WARN_ON() when a slave timer is deployed as its backend and a corresponding master timer stops meanwhile. The symptom was triggered by syzkaller spontaneously. Since the NULL timer is valid there, rip off snd_BUG_ON(). Reported-by: syzbot <syzkaller@googlegroups.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 4fbd8d1 commit 43a3542

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/core/seq/seq_timer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static int initialize_timer(struct snd_seq_timer *tmr)
355355
unsigned long freq;
356356

357357
t = tmr->timeri->timer;
358-
if (snd_BUG_ON(!t))
358+
if (!t)
359359
return -EINVAL;
360360

361361
freq = tmr->preferred_resolution;

0 commit comments

Comments
 (0)