Commit ee0d382f authored by Ma Ke's avatar Ma Ke Committed by Greg Kroah-Hartman
Browse files

usb: gadget: aspeed_udc: validate endpoint index for ast udc



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: default avatarMa Ke <make24@iscas.ac.cn>
Reviewed-by: default avatarAndrew Jeffery <andrew@codeconstruct.com.au>
Acked-by: default avatarAndrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20240625022306.2568122-1-make24@iscas.ac.cn


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 859976e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment