Skip to contentSkip to conversation

virtio-pci: use size from correct structure

PATCH New Michael S. Tsirkin 1 participant 1 message Sep 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-pci: use size from correct structure

PIO MR registration should use size from the correct notify struct. Doesn't affect any visible behaviour because the field values are the same (both are 4).

---
 hw/virtio/virtio-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/virtio-pci.c +1 -1
index 755f921..268fd8e 100644
@@ -1520,7 +1520,7 @@ static void virtio_pci_modern_regions_init(VirtIOPCIProxy *proxy)
                           &notify_pio_ops,
                           virtio_bus_get_device(&proxy->bus),
                           "virtio-pci-notify-pio",
-                          proxy->notify.size);
+                          proxy->notify_pio.size);
 }
 
 static void virtio_pci_modern_region_map(VirtIOPCIProxy *proxy,
Signature · 1 line
MST