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

Greg Kroah-Hartman
2021-12-10T15:54:00Z

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:
> > 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 <pavel.hofman@ivitera.com>
> > ---
>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>
>
> This should have a "CC: <stable@vger.kernel.org>" tag attached.

I can add that, thanks.

greg k-h