mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-08 03:35:14 +00:00
DM USB: xHCI: fix error logic of allocating xHCI slot
The 'slot_allocated[]' field of pci_xhci_vdev is used as flag of slot allocation. In current design, this variable is not set to false in disconnection callback 'pci_xhci_native_usb_dev_disconn_cb'. This patch is used to fix it. Tracked-On: #1894 Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com>
This commit is contained in:
parent
67363b553e
commit
cc6313ff13
@ -834,6 +834,7 @@ pci_xhci_native_usb_dev_disconn_cb(void *hci_data, void *dev_data)
|
||||
edev->dev_slotstate = XHCI_ST_DISABLED;
|
||||
xdev->devices[vport] = NULL;
|
||||
xdev->slots[slot] = NULL;
|
||||
xdev->slot_allocated[slot] = false;
|
||||
pci_xhci_dev_destroy(edev);
|
||||
need_intr = 0;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user