OSDN Git Service

usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 12 Jan 2018 06:50:02 +0000 (17:50 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 14:34:37 +0000 (15:34 +0100)
commit11fb37998759c48e4e4c200c974593cbeab25d3e
treedd9ede5d130a813b6cec7798d06a3897c97e09c9
parent0cb5818a3b250de64e02592f4584f7c21d9566b8
usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()

The current code tries to test for bits that are masked out by
usb_endpoint_maxp(). Instead, use the proper accessor to access
the new high bandwidth bits.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c