diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-14 19:56:12 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-14 20:01:22 +0300 |
commit | 976a68f06b2ea49e2ab67a5f84919a8b105db8be (patch) | |
tree | 7a44d7b68c7f9a246b516bc99e0d0342220c973d /sound/pci | |
parent | cc9dbfa9707868fb0ca864c05e0c42d3f4d15cf2 (diff) | |
download | linux-976a68f06b2ea49e2ab67a5f84919a8b105db8be.tar.xz |
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: 57f8770620e9 ("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>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions