ALSA: mixart: Add sanity check for timer notify streams
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Dec 2021 15:33:23 +0000 (16:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Dec 2021 15:35:58 +0000 (16:35 +0100)
commit403c521003a1364fd2d7c01a2a1f66ed025fb94a
treed7475ab7ab9268a15e3b889e05d4a50964ed4449
parenta98478f825862ddc1686a3335f9f1cc278fc5733
ALSA: mixart: Add sanity check for timer notify streams

The miXart timer notification is a variable length, and if a hardware
is screwed up, we may access over the actual data size.  Let's add a
sanity check and bail out if an invalid value is received.

Link: https://lore.kernel.org/r/20211207153323.27098-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/mixart/mixart_core.c