[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] xhci: fix guest triggerable assert
From: |
Gerd Hoffmann |
Subject: |
[PULL 5/6] xhci: fix guest triggerable assert |
Date: |
Mon, 16 Nov 2020 12:10:35 +0100 |
We didn't start any work yet so we can just return
at that point instead of asserting.
Buglink: https://bugs.launchpad.net/qemu/+bug/1883732
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201105134112.25119-6-kraxel@redhat.com
---
hw/usb/hcd-xhci.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 79ce5c4be6c4..d00bb0141dac 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1904,7 +1904,9 @@ static void xhci_kick_epctx(XHCIEPContext *epctx,
unsigned int streamid)
streamid = 0;
xhci_set_ep_state(xhci, epctx, NULL, EP_RUNNING);
}
- assert(ring->dequeue != 0);
+ if (!ring->dequeue) {
+ return;
+ }
epctx->kick_active++;
while (1) {
--
2.27.0
- [PULL 0/6] Fixes 20201116 patches, Gerd Hoffmann, 2020/11/16
- [PULL 3/6] usb-storage: use bool for removable property, Gerd Hoffmann, 2020/11/16
- [PULL 2/6] usb-storage: add commandlog property, Gerd Hoffmann, 2020/11/16
- [PULL 4/6] usb-storage: fill csw on cancel, Gerd Hoffmann, 2020/11/16
- [PULL 1/6] usb-storage: switch trace events, Gerd Hoffmann, 2020/11/16
- [PULL 5/6] xhci: fix guest triggerable assert,
Gerd Hoffmann <=
- [PULL 6/6] xhci: move sanity checks, Gerd Hoffmann, 2020/11/16
- Re: [PULL 0/6] Fixes 20201116 patches, Peter Maydell, 2020/11/16