]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: fireface: Off by one in latter_handle_midi_msg()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Jan 2019 12:44:18 +0000 (15:44 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 25 Jan 2019 14:51:33 +0000 (15:51 +0100)
commit2dee43ec3f31de39dc74e76e6ed65d976f486df0
tree2871302b6f7852d22d766142182464eb8df7d33b
parent205d6bcf9bb896903248cd8d600f23cf4d3886d2
ALSA: fireface: Off by one in latter_handle_midi_msg()

The > should be >= or otherwise we potentially read one element beyond
the end of the ff->tx_midi_substreams[] array.

Fixes: 73f5537fb209 ("ALSA: fireface: support tx MIDI functionality of Fireface UCX")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireface/ff-protocol-latter.c