ALSA: seq: Remove spurious WARN_ON() at timer check
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 Nov 2017 09:08:28 +0000 (10:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:13 +0000 (09:28 +0100)
commit20ca63e0968ed1614fa91c836eee8f61d7f54c7e
tree8d83add0543125c118de45b44d8a8bd851ee156d
parent45ddff3ce4e9a3d7e935d5b596686d9e176ed4a9
ALSA: seq: Remove spurious WARN_ON() at timer check

commit 43a3542870328601be02fcc9d27b09db467336ef upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/seq/seq_timer.c