summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-28 10:38:11 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-10-31 12:15:33 +0300
commite8f29bb719b47a234f33b0af62974d7a9521a52c (patch)
tree6348d9a70166153c0aaca393bb57bc8555b240d7 /drivers/usb/gadget/function
parent541b6fe63023f3059cf85d47ff2767a3e42a8e44 (diff)
downloadlinux-e8f29bb719b47a234f33b0af62974d7a9521a52c.tar.xz
usb: gadget: composite: correctly initialize ep->maxpacket
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. Cc: <stable@vger.kernel.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function')
0 files changed, 0 insertions, 0 deletions