summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/legacy/usb/usbhost/core/usbhost_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/legacy/usb/usbhost/core/usbhost_core.c b/components/legacy/usb/usbhost/core/usbhost_core.c
index 6641fe3cdc..6fea444b02 100644
--- a/components/legacy/usb/usbhost/core/usbhost_core.c
+++ b/components/legacy/usb/usbhost/core/usbhost_core.c
@@ -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);