summaryrefslogtreecommitdiff
path: root/hw/usb/libhw.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/libhw.c')
-rw-r--r--hw/usb/libhw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/libhw.c b/hw/usb/libhw.c
index 703e2d213b..24d3cad3a2 100644
--- a/hw/usb/libhw.c
+++ b/hw/usb/libhw.c
@@ -37,7 +37,7 @@ int usb_packet_map(USBPacket *p, QEMUSGList *sgl)
while (len) {
dma_addr_t xlen = len;
- mem = dma_memory_map(sgl->dma, sgl->sg[i].base, &xlen, dir);
+ mem = dma_memory_map(sgl->dma, base, &xlen, dir);
if (!mem) {
goto err;
}