mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
bdc_sr_xsf() decodes a 5-bit endpoint number from the hardware status report and uses it to index bdc->bdc_ep_array[] directly. The array is only allocated to bdc->num_eps for the current controller instance, so a status report can carry an endpoint number that still fits the 5-bit field but does not fit the runtime-sized endpoint table. Reject status reports whose endpoint number is outside bdc->num_eps before indexing the endpoint array. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Justin Chen <justin.chen@broadcom.com> Link: https://patch.msgid.link/20260323121730.75245-1-pengpeng@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| bdc_cmd.c | ||
| bdc_cmd.h | ||
| bdc_core.c | ||
| bdc_dbg.c | ||
| bdc_dbg.h | ||
| bdc_ep.c | ||
| bdc_ep.h | ||
| bdc_udc.c | ||
| bdc.h | ||
| Kconfig | ||
| Makefile | ||