virtio-pci: fix wrong index in virtio_pci_queue_enabled
PATCH 1/1 virtio-pci: fix wrong index in virtio_pci_queue_enabled
https://bugzilla.redhat.com/show_bug.cgi?id=1702608
Signed-off-by Yuri Benditovich <[email protected]>
--- hw/virtio/virtio-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/virtio-pci.c +1 -1
@@ -1113,7 +1113,7 @@ static bool virtio_pci_queue_enabled(DeviceState *d, int n)VirtIODevice *vdev =virtio_bus_get_device (&proxy->bus);if (virtio_vdev_has_feature (vdev,VIRTIO_F_VERSION_1 )) { -return proxy->vqs[vdev->queue_sel].enabled; +return proxy->vqs[n].enabled; }return virtio_queue_enabled (vdev, n);
Signature · 1 line
2.17.1
Quoted 3 lines · Yuri Benditovich
https://bugzilla.redhat.com/show_bug.cgi?id=1702608
Signed-off-by Yuri Benditovich <[email protected]>
Queued for rc2.
Thanks
Quoted 17 lines
--- hw/virtio/virtio-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/virtio/virtio-pci.c +1
-1@@ -1113,7 +1113,7 @@ static bool virtio_pci_queue_enabled(DeviceState *d, int n)VirtIODevice *vdev =virtio_bus_get_device (&proxy->bus);if (virtio_vdev_has_feature (vdev,VIRTIO_F_VERSION_1 )) { -return proxy->vqs[vdev->queue_sel].enabled; +return proxy->vqs[n].enabled; }return virtio_queue_enabled (vdev, n);