]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: usb-audio: fix invalid length check for RME and other UAC 2 devices
authorClemens Ladisch <clemens@ladisch.de>
Thu, 29 Nov 2012 16:04:23 +0000 (17:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:03 +0000 (18:27 -0600)
commitabfa0eb0b90f045a2d3b15d8eb2eec9bb9c1c192
treeaad9aafcc26a4a4bffb406f92e7af7eabf28edb6
parent170c873e1406f2a3bf578acdeac7343388dae248
ALSA: usb-audio: fix invalid length check for RME and other UAC 2 devices

commit d56268fb108c7c21e19933588ca4d94652585183 upstream.

Commit 23caaf19b11e (ALSA: usb-mixer: Add support for Audio Class v2.0)
forgot to adjust the length check for UAC 2.0 feature unit descriptors.
This would make the code abort on encountering a feature unit without
per-channel controls, and thus prevented the driver to work with any
device having such a unit, such as the RME Babyface or Fireface UCX.

Reported-by: Florian Hanisch <fhanisch@uni-potsdam.de>
Tested-by: Matthew Robbetts <wingfeathera@gmail.com>
Tested-by: Michael Beer <beerml@sigma6audio.de>
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c