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>
Sat, 3 Feb 2018 16:39:21 +0000 (17:39 +0100)
commit2ba5966eddefdf04306bd1da36811c8b83a9664d
tree1d56912b5b29d01c3bdd29ef5e37ae8b64df181b
parente0096f93aa42d47f0277e28c3b26eaa5e1ebadd5
usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc()

commit 11fb37998759c48e4e4c200c974593cbeab25d3e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/core.c