aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-06-16 16:24:44 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:35 -0500
commitd3fa1e0f36ee3b4fc61bd5c6b681c82932ebec41 (patch)
treec248c91f5cf4b411e28e3da417e243bc077e5af5 /hw
parent537fe2d63f744e7c96ff45b60d09486a81958e06 (diff)
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 <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci-hotplug.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index abe5bae4ac..4d49c29c42 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;
}