diff --git a/kernel/device/usb/xhci.c b/kernel/device/usb/xhci.c index 7d44e94..56e19ce 100644 --- a/kernel/device/usb/xhci.c +++ b/kernel/device/usb/xhci.c @@ -1436,6 +1436,8 @@ DEFINE_DEVICE_FINI (xhci_fini) { struct xhci_port* port = list_entry (port_link, struct xhci_port, ports_link); list_remove (xhci->xhci_ports, &port->ports_link); + + xhci_delete_usb_device (xhci, port); free (port); }