]> Git Repo - qemu.git/blobdiff - hw/usb/hcd-xhci.c
Revert "xhci: Fix number of streams allocated when using streams"
[qemu.git] / hw / usb / hcd-xhci.c
index f7f9fed73712243fb6fcc1aa9f1feaf94c764ff8..88660e85b789622ce34de984af341480e614b307 100644 (file)
@@ -1151,7 +1151,7 @@ static void xhci_reset_streams(XHCIEPContext *epctx)
 static void xhci_alloc_streams(XHCIEPContext *epctx, dma_addr_t base)
 {
     assert(epctx->pstreams == NULL);
-    epctx->nr_pstreams = 2 << (epctx->max_pstreams + 1);
+    epctx->nr_pstreams = 2 << epctx->max_pstreams;
     epctx->pstreams = xhci_alloc_stream_contexts(epctx->nr_pstreams, base);
 }
 
This page took 0.022656 seconds and 4 git commands to generate.