From 9f6af8128875134c541420725e60293b631387ca Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 16 Jun 2009 16:24:44 +0200 Subject: [PATCH] qdev: Fix regression in "pci_add ... storage if=virtio, ..." qemu_pci_hot_add_storage() runs qdev_init() twice. Broken in commit 07e3af9a "Virtio-blk qdev conversion". Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori --- hw/pci-hotplug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index abe5bae..4d49c29 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -122,7 +122,6 @@ static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon, PCIBus *pci_bus, break; case IF_VIRTIO: opaque = pci_create_simple(pci_bus, -1, "virtio-blk-pci"); - qdev_init(opaque); break; } -- 2.7.4