Skip to contentSkip to conversation

hcd-xhci: drop operation with secondary stream arrays enabled

PATCH New Qiang Liu 1 participant 1 message Sep 4, 2022

lore
Share & tools
lore

Qiang Liu

author
#0 lore raw

PATCH 1/1 hcd-xhci: drop operation with secondary stream arrays enabled

The abort() in xhci_find_stream() can be triggered via enabling the secondary stream arrays by setting linear stream array (LSA) bit (in endpoint context) to
0. We may show warnings and drop this operation.

Fixes 024426acc0a2 ("usb-xhci: usb3 streams")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1192

---
 hw/usb/hcd-xhci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
hw/usb/hcd-xhci.c +3 -1
index 3c48b58dde..654f7ec24a 100644
@@ -992,7 +992,9 @@ static XHCIStreamContext *xhci_find_stream(XHCIEPContext *epctx,
         }
         sctx = epctx->pstreams + streamid;
     } else {
-        FIXME("secondary streams not implemented yet");
+        fprintf(stderr, "xhci: FIXME: secondary streams not implemented yet");
+        *cc_error = CC_INVALID_STREAM_TYPE_ERROR;
+        return NULL;
     }
 
     if (sctx->sct == -1) {
Signature · 1 line
2.25.1