summaryrefslogtreecommitdiff
path: root/drivers/usb/host/uhci-pci.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-28 07:38:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-06 09:40:11 (GMT)
commite0aa5ec40d6effc891eb63740bb03f5f50cb539e (patch)
treee4a7ac9616f3a7cc4f5d3734e2d007d682daffe1 /drivers/usb/host/uhci-pci.c
parent5180169dae85a3bd5b081529ba149374a0b3ffed (diff)
downloadlinux-e0aa5ec40d6effc891eb63740bb03f5f50cb539e.tar.xz
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/uhci-pci.c')
0 files changed, 0 insertions, 0 deletions