aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-04-29 14:35:08 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-30 09:52:48 -0500
commitcffc5113a421feba767af57ec87fdd53a29e9f9c (patch)
tree3be8acb29e5406bd3ea0b03311d064ec4a1e3207 /hw
parent7e7da8e35827abf602fa886fda1af9b001c20d3e (diff)
downloadqemu-cffc5113a421feba767af57ec87fdd53a29e9f9c.zip
qemu-cffc5113a421feba767af57ec87fdd53a29e9f9c.tar.gz
qemu-cffc5113a421feba767af57ec87fdd53a29e9f9c.tar.bz2
qdev: Report errors collected during device realization
Better than just releasing the error object silently. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Message-id: 517E68FC.6030400@siemens.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/core/qdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 4eb0134..ab1d8f5 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -162,6 +162,7 @@ int qdev_init(DeviceState *dev)
object_property_set_bool(OBJECT(dev), true, "realized", &local_err);
if (local_err != NULL) {
+ qerror_report_err(local_err);
error_free(local_err);
qdev_free(dev);
return -1;