mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-16 01:05:15 +08:00
[drivers][usb] Clarify the configuration interface count check
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user