qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] vhost-scsi: Fix mask index err in vhost_scsi_start


From: arei.gonglei
Subject: [Qemu-devel] [PATCH] vhost-scsi: Fix mask index err in vhost_scsi_start
Date: Mon, 27 Jul 2015 14:25:59 +0800

From: Lu Lina <address@hidden>

Signed-off-by: Lu Lina <address@hidden>
Signed-off-by: Gonglei <address@hidden>
---
 hw/scsi/vhost-scsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c
index 1941aa1..174b4d2 100644
--- a/hw/scsi/vhost-scsi.c
+++ b/hw/scsi/vhost-scsi.c
@@ -117,7 +117,7 @@ static int vhost_scsi_start(VHostSCSI *s)
      * enabling/disabling irqfd.
      */
     for (i = 0; i < s->dev.nvqs; i++) {
-        vhost_virtqueue_mask(&s->dev, vdev, i, false);
+        vhost_virtqueue_mask(&s->dev, vdev, s->dev.vq_index + i, false);
     }
 
     return ret;
-- 
1.8.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]