usb: gadget: Use correct endianness of the wLength field for WebUSB
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 13 Mar 2023 15:45:22 +0000 (17:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 11:45:35 +0000 (12:45 +0100)
commitbbf860ed710bacc0279c4cda2817f70e1200d04b
treecedf1de792dc0dc9c865e78960139b4b0e7f45fa
parenta37eb61b6ec064ac794b8a1e89fd33eb582fe51d
usb: gadget: Use correct endianness of the wLength field for WebUSB

WebUSB code uses wLength directly without proper endianness conversion.
Update it to use already prepared temporary variable w_length instead.

Fixes: 93c473948c58 ("usb: gadget: add WebUSB landing page support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-By: Jó Ágila Bitsch <jgilab@gmail.com>
Link: https://lore.kernel.org/r/20230313154522.52684-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c