xhci needs them even after completing device initialization. xhci must to walk up the chain to the root port and the usbdevs (of usb hubs) are part of it. --- src/usb.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/src/usb.c b/src/usb.c index 42541ff..808f426 100644 --- a/src/usb.c +++ b/src/usb.c @@ -378,7 +378,6 @@ usb_hub_port_setup(void *data) hub->devcount += count; done: hub->threads--; - free(usbdev); return;
resetfail: