]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: core: Use le16_to_cpu() to read __le16 value in usb_parse_endpoint()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 Aug 2025 14:38:16 +0000 (17:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:25:05 +0000 (15:25 +0200)
commit970076537efd847c6f74ba9ed888b9cdbf71206e
treebf3216e3e01e09568b4b9e916602fce788f5becd
parentedede7a6dcd7435395cf757d053974aaab6ab1c2
usb: core: Use le16_to_cpu() to read __le16 value in usb_parse_endpoint()

wMaxPacketSize field in struct usb_endpoint_descriptor is an __le16, use
le16_to_cpu() to read it.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250820143824.551777-2-sakari.ailus@linux.intel.com
drivers/usb/core/config.c