XHCI xhci_fini delete usb devices when freeing the port struct

This commit is contained in:
2026-04-03 16:30:59 +02:00
parent cc5f08251e
commit 92ed1fb968

View File

@@ -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);
}