]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Sat, 1 Feb 2020 08:06:11 +0000 (09:06 +0100)
commit59aad298bf39d3655a8104f727ba911dfcbd8ce3
tree0f839e10c7f76e2a684ed089faf538531229b038
parent0ea3383cbe57e2a9b50e0b3afd36c7c49c144dec
ALSA: usb-audio: Fix endianess in descriptor validation

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: 88246bc2bd7c ("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>
sound/usb/validate.c