]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: virmidi: Fix running status after receiving sysex
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Mar 2020 09:05:05 +0000 (10:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Mar 2020 09:06:22 +0000 (10:06 +0100)
commit8ea87433b8eed3431dbaa7ad0ffbee42a10e0cf1
tree8321a3fbd851f3fff306a09f39fcccdbe5475b69
parent4dd86c8251ec5f18e76d8696c032c1dfc4defa6e
ALSA: seq: virmidi: Fix running status after receiving sysex

The virmidi driver handles sysex event exceptionally in a short-cut
snd_seq_dump_var_event() call, but this missed the reset of the
running status.  As a result, it may lead to an incomplete command
right after the sysex when an event with the same running status was
queued.

Fix it by clearing the running status properly via alling
snd_midi_event_reset_decode() for that code path.

Reported-by: Andreas Steinmetz <ast@domdv.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/3b4a4e0f232b7afbaf0a843f63d0e538e3029bfd.camel@domdv.de
Link: https://lore.kernel.org/r/20200316090506.23966-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_virmidi.c