usb: fix loop in usb_config_parse

By inspection, index increment was missing.

PR:		281843
Reported by:	Matt Jacobson
Reviewed by:	bz, markj
Fixes: e4611d2626 ("usb(4): Call optional endpoint_uninit() when changing configuration or alternate setting.")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 114080d19973331426cd826f3a961c6ea9216a53)
This commit is contained in:
Ed Maste 2024-10-04 11:49:53 -04:00
parent e8c5d6f6b8
commit ddc9bb7068

View file

@ -855,6 +855,7 @@ usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd)
if (ep->refcount_alloc != 0)
return (USB_ERR_IN_USE);
}
ep++;
}
}