]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Nov 2017 09:08:28 +0000 (10:08 +0100)
commitc062cd789f3671f601a928fce6490f56303513e7
treedb62e66941edf61f3cd54a7f398188f3ed4727bc
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
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>
sound/core/seq/seq_timer.c