mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-28 10:04:14 +00:00
DM USB: xHCI: fix a potential issue of crash
This patch is used to fix a potential issue resulted from typo. Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
parent
7bc1a3f925
commit
c5dcb34f39
@ -593,7 +593,7 @@ pci_xhci_native_usb_dev_disconn_cb(void *hci_data, void *dev_data)
|
||||
if (xdev->slots[slot] == edev)
|
||||
break;
|
||||
|
||||
assert(slot < USB_NATIVE_NUM_BUS);
|
||||
assert(slot < XHCI_MAX_SLOTS);
|
||||
|
||||
status = VPORT_STATE(xdev->port_map_tbl[di.bus][di.port]);
|
||||
assert(status == VPORT_EMULATED || status == VPORT_CONNECTED);
|
||||
|
Loading…
Reference in New Issue
Block a user