]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Fix endianess in descriptor validation
authorTakashi Iwai <tiwai@suse.de>
Sat, 1 Feb 2020 08:05:28 +0000 (09:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:33:56 +0000 (04:33 -0800)
commita46ebc21da8a3c5f52014f2808a04fa88bba8656
treefb82c7cd17a8dc31e9a8f6e1b10ca87d700b2f73
parente3ed79d11b2716aaca68ae9afdc79dddae53bdc9
ALSA: usb-audio: Fix endianess in descriptor validation

commit f8e5f90b3a53bb75f05124ed19156388379a337d upstream.

I overlooked that some fields are words and need the converts from
LE in the recently added USB descriptor validation code.
This patch fixes those with the proper macro usages.

Fixes: 57f8770620e9 ("ALSA: usb-audio: More validations of descriptor units")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200201080530.22390-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/validate.c