[drivers][usb] Clarify the configuration interface count check

This commit is contained in:
W GTO authored and Rbb666 committed 2026-10-14 10:17:15 +08:00
1 parent 06f193d682
commit 8acbb5df8e
1 file changed
+1 -1
@@ -181,7 +181,7 @@ rt_err_t rt_usbh_attatch_instance(uinst_t device)
return ret;
}
/* Validate the full descriptor before indexing the interface array. */
/* Check the count returned with the full configuration descriptor. */
if (device->cfg_desc->bNumInterfaces > USB_MAX_INTERFACE)
{
LOG_E("Too many USB interfaces: %d", device->cfg_desc->bNumInterfaces);