summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-28 10:38:11 +0300
committerBen Hutchings <ben@decadent.org.uk>2017-03-16 02:26:17 +0000
commitcaf106f850d23a82c31a322a2ec72326a8e365d7 (patch)
tree970c1bf3912a9e223785171486ea2b908d6a1092 /include/uapi
parent3dab7d4f5119373f0092fc33d9c7bf599c39eb32 (diff)
usb: gadget: composite: correctly initialize ep->maxpacket
commit e8f29bb719b47a234f33b0af62974d7a9521a52c upstream. usb_endpoint_maxp() returns wMaxPacketSize in its raw form. Without taking into consideration that it also contains other bits reserved for isochronous endpoints. This patch fixes one occasion where this is a problem by making sure that we initialize ep->maxpacket only with lower 10 bits of the value returned by usb_endpoint_maxp(). Note that seperate patches will be necessary to audit all call sites of usb_endpoint_maxp() and make sure that usb_endpoint_maxp() only returns lower 10 bits of wMaxPacketSize. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions