Make qdev_init() destroy the device on failure
commit18cfeb52d17825dddadfc74e99255530aa889136
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Oct 2009 23:15:56 +0000 (7 01:15 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Oct 2009 13:54:53 +0000 (7 08:54 -0500)
tree532b36d74abb74846aa9815a2bd07cc773808fd3
parent05a91699292dbb814c37d55da72fd35fa2a686a2
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>
hw/isa-bus.c
hw/qdev.c