]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add sanity checks in UAC3 clock parsers
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Apr 2018 15:45:19 +0000 (17:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 7 Apr 2018 11:07:17 +0000 (13:07 +0200)
commitd9d8b2898214b3a0c31b6fcb32e92d3f7e05e2f3
tree6990175a3594dab8dad9c0b2e180e927d79b272f
parenta336f5f7ea9128666fc81b0468837cd0880e1643
ALSA: usb-audio: Add sanity checks in UAC3 clock parsers

The UAC3 clock parser codes lack of the sanity checks for malformed
descriptors like UAC2 parser does.  Without it, the driver may lead to
a potential crash.

Fixes: 878e02e504bf ("ALSA: usb: initial USB Audio Device Class 3.0 support")
Tested-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Reviewed-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c