mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
usbhost_composite: fix end offset in usbhost_copyinterface()
This commit is contained in:
committed by
Gregory Nutt
parent
a03d26e88d
commit
4b282f219a
@@ -337,7 +337,7 @@ static int usbhost_copyinterface(uint8_t ifno, FAR const uint8_t *configdesc,
|
||||
*/
|
||||
|
||||
for (offset += len;
|
||||
offset < desclen - sizeof(struct usb_ifdesc_s);
|
||||
offset <= desclen - sizeof(struct usb_epdesc_s);
|
||||
offset += len)
|
||||
{
|
||||
epdesc = (FAR struct usb_epdesc_s *)&configdesc[offset];
|
||||
|
||||
Reference in New Issue
Block a user