XHCI xhci_fini delete usb devices when freeing the port struct
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user