From 9cc090e677c9d7e7963369075f9153eae408fc2d Mon Sep 17 00:00:00 2001 From: Liu Long Date: Thu, 26 Aug 2021 09:23:59 +0800 Subject: [PATCH] ACRN:DM: Fix the bug introduced by dea2574819c. Fix the bug introduced by dea2574819c. There had a typo that added the "&" by mistake. Tracked-On: #6476 Signed-off-by: Liu Long Acked-by: Wang, Yu1 --- devicemodel/hw/pci/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/pci/xhci.c b/devicemodel/hw/pci/xhci.c index bc83b669c..0f09175c1 100644 --- a/devicemodel/hw/pci/xhci.c +++ b/devicemodel/hw/pci/xhci.c @@ -1817,7 +1817,7 @@ pci_xhci_insert_event(struct pci_xhci_vdev *xdev, int erdp_idx; rts = &xdev->rtsregs; - if (&rts->erstba_p == NULL) { + if (rts->erstba_p == NULL) { UPRINTF(LFTL, "Invalid Event Ring Segment Table base address!\r\n"); return -EINVAL; }