aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/core/config.c
diff options
context:
space:
mode:
authorJeferson <jroliveira.oliveira301@gmail.com>2022-01-17 20:41:28 +0100
committerJeferson <jroliveira.oliveira301@gmail.com>2022-01-17 20:41:28 +0100
commit4500a44912050294ffa168cea9707ebe4c7e466f (patch)
tree29cec3bd89ed0702e0f84cb0f1a996a01605e937 /drivers/usb/core/config.c
parent1904adc0bb37e30c472eccb7bbe5e724d7cc2595 (diff)
parentb0ee52316847cf279a1028334117985a5d633c0c (diff)
Merge tag 'v4.4.299' of https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux into s12.0s12.0
This is the 4.4.299 stable release Change-Id: I331944da7c34652c67c588856c491a5edcf37adf
Diffstat (limited to 'drivers/usb/core/config.c')
-rw-r--r--drivers/usb/core/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index ae2ea73cb24e..b4b2ce3b1252 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -375,7 +375,7 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno,
* the USB-2 spec requires such endpoints to have wMaxPacketSize = 0
* (see the end of section 5.6.3), so don't warn about them.
*/
- maxp = usb_endpoint_maxp(&endpoint->desc);
+ maxp = le16_to_cpu(endpoint->desc.wMaxPacketSize);
if (maxp == 0 && !(usb_endpoint_xfer_isoc(d) && asnum == 0)) {
dev_warn(ddev, "config %d interface %d altsetting %d endpoint 0x%X has invalid wMaxPacketSize 0\n",
cfgno, inum, asnum, d->bEndpointAddress);