[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qdev: Fix regression in "pci_add ... storage if=vir
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH] qdev: Fix regression in "pci_add ... storage if=virtio, ..." |
Date: |
Tue, 16 Jun 2009 16:24:44 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
qemu_pci_hot_add_storage() runs qdev_init() twice. Broken in commit
07e3af9a "Virtio-blk qdev conversion".
Signed-off-by: Markus Armbruster <address@hidden>
---
hw/pci-hotplug.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
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;
}
--
1.6.0.6