diff options
| author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-28 10:38:11 +0300 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-07-04 11:51:12 +0200 |
| commit | bb246117887a412d06c0a8c18e13b3b11e5ac633 (patch) | |
| tree | 6f5afcfe13d045b286f01fed3b9c2294c8b0d154 /kernel/itimer.c | |
| parent | bd604a0bf10c2007a1f026339327d12b80b87c3c (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: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel/itimer.c')
0 files changed, 0 insertions, 0 deletions
