aboutsummaryrefslogtreecommitdiff
path: root/hw/isa-bus.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-10-07 01:15:56 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-07 08:54:53 -0500
commit18cfeb52d17825dddadfc74e99255530aa889136 (patch)
tree532b36d74abb74846aa9815a2bd07cc773808fd3 /hw/isa-bus.c
parent05a91699292dbb814c37d55da72fd35fa2a686a2 (diff)
downloadqemu-18cfeb52d17825dddadfc74e99255530aa889136.zip
qemu-18cfeb52d17825dddadfc74e99255530aa889136.tar.gz
qemu-18cfeb52d17825dddadfc74e99255530aa889136.tar.bz2
Make qdev_init() destroy the device on failure
Before, every caller had to do this. Only two actually did. Patchworks-ID: 35170 Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/isa-bus.c')
-rw-r--r--hw/isa-bus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index 4ecc0f8..fb90be4 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -127,7 +127,6 @@ ISADevice *isa_create_simple(const char *name)
dev = isa_create(name);
if (qdev_init(&dev->qdev) != 0) {
- qdev_free(&dev->qdev);
return NULL;
}
return dev;