Re: [PATCH v2] usb: gadget: aspeed_udc: validate endpoint index for ast udc

From: Andrew Jeffery
Date: Mon Jun 24 2024 - 19:55:41 EST


On Mon, 2024-06-24 at 09:53 +0800, Ma Ke wrote:
> We should verify the bound of the array to assure that host
> may not manipulate the index to point past endpoint array.
>
> Found by static analysis.
>
> Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>

Probably best to do a v3 with a changelog as Greg's email suggests (and
for the v3 changelog entry, mention that you added the changelog).

Acked-by: Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>