Re: [PATCH 1/2] usb: core: config: fix validation of wMaxPacketValue entries

From
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date
2021-12-10 15:54:00
Reply to
Alan Stern, 2021-12-10
On Fri, Dec 10, 2021 at 10:48:21AM -0500, Alan Stern wrote:
On Fri, Dec 10, 2021 at 09:52:18AM +0100, Pavel Hofman wrote:
quoted
The checks performed by commit aed9d65ac327 ("USB: validate
wMaxPacketValue entries in endpoint descriptors") require that initial
value of the maxp variable contains both maximum packet size bits
(10..0) and multiple-transactions bits (12..11). However, the existing
code assings only the maximum packet size bits. This patch assigns all
bits of wMaxPacketSize to the variable.

Fixes: aed9d65ac327 ("USB: validate wMaxPacketValue entries in endpoint descriptors")
Signed-off-by: Pavel Hofman <redacted>
---
Acked-by: Alan Stern <stern@rowland.harvard.edu>

This should have a "CC: [off-list ref]" tag attached.
I can add that, thanks.

greg k-h
Thread (5 messages) 5 messages, 3 authors, last reply 2021-12-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help