summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHiFiPHile <[email protected]>2026-09-01 10:36:58 +0200
committerHiFiPHile <[email protected]>2026-09-01 10:41:53 +0200
commitbc359e55b8d3fb5fc5b9e026d5c21b52d554fdd2 (patch)
tree758a170266b7360d3eaa38ea6c2b15592e372f89 /src/device
parent53567226fce0e7be7e7b5e7a019d0f4d14064c33 (diff)
propagate the endpoint-bound failure on the host path
tu_bind_driver_to_ep_itf() now returns false when ep_num >= CFG_TUH_ENDPOINT_MAX, but the host caller ignores that result and continues enumeration. Configurations such as host/bare_api set the limit to 8, while valid USB devices may use endpoints 8–15. A recognized class can therefore continue and later index ep_status[epnum] or ep2drv[epnum] out of bounds. Wrap this call in TU_ASSERT(...), as the device path already does, so parsing fails immediately. Signed-off-by: HiFiPHile <[email protected]>
Diffstat (limited to 'src/device')
0 files changed, 0 insertions, 0 deletions