linux/sound/usb
Takashi Iwai 976a68f06b ALSA: usb-audio: Fix incorrect size check for processing/extension units
The recently introduced unit descriptor validation had some bug for
processing and extension units, it counts a bControlSize byte twice so
it expected a bigger size than it should have been.  This seems
resulting in a probe error on a few devices.

Fix the calculation for proper checks of PU and EU.

Fixes: 57f8770620 ("ALSA: usb-audio: More validations of descriptor units")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191114165613.7422-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-11-14 18:01:22 +01:00
..
6fire
bcd2000
caiaq
hiface ALSA: hiface: fix multiple memory leak bugs 2019-08-07 12:20:00 +02:00
line6 Merge branch 'topic/usb-validation' into for-next 2019-08-22 15:42:03 +02:00
misc
usx2y
card.c
card.h
clock.c ALSA: usb-audio: Remove superfluous bLength checks 2019-08-22 10:36:00 +02:00
clock.h
debug.h
endpoint.c ALSA: usb-audio: not submit urb for stopped endpoint 2019-11-13 10:49:31 +01:00
endpoint.h
format.c
format.h
helper.c ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check 2019-07-30 12:32:21 +02:00
helper.h ALSA: usb-audio: More validations of descriptor units 2019-08-22 10:35:59 +02:00
Kconfig
Makefile Merge branch 'topic/usb-validation' into for-next 2019-08-22 15:42:03 +02:00
media.c
media.h
midi.c
midi.h
mixer_maps.c
mixer_quirks.c Merge branch 'topic/usb-validation' into for-next 2019-08-22 15:42:03 +02:00
mixer_quirks.h
mixer_scarlett_gen2.c
mixer_scarlett_gen2.h
mixer_scarlett.c
mixer_scarlett.h
mixer_us16x08.c
mixer_us16x08.h
mixer.c ALSA: usb-audio: Fix missing error check at mixer resolution test 2019-11-09 19:17:49 +01:00
mixer.h
pcm.c ALSA: usb-audio: Disable quirks for BOSS Katana amplifiers 2019-10-17 10:19:05 +02:00
pcm.h
power.c ALSA: usb-audio: More validations of descriptor units 2019-08-22 10:35:59 +02:00
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add Pioneer DDJ-SX3 PCM quirck 2019-08-06 12:52:36 +02:00
quirks.c ALSA: usb-audio: Fix incorrect NULL check in create_yamaha_midi_quirk() 2019-11-14 12:09:06 +01:00
quirks.h
stream.c Merge branch 'topic/usb-validation' into for-next 2019-08-22 15:42:03 +02:00
stream.h
usbaudio.h
validate.c ALSA: usb-audio: Fix incorrect size check for processing/extension units 2019-11-14 18:01:22 +01:00