mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
e8c5d6f6b8
commit
ddc9bb7068
1 changed files with 1 additions and 0 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue