diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-04-29 14:35:08 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-30 09:52:48 -0500 |
commit | cffc5113a421feba767af57ec87fdd53a29e9f9c (patch) | |
tree | 3be8acb29e5406bd3ea0b03311d064ec4a1e3207 | |
parent | 7e7da8e35827abf602fa886fda1af9b001c20d3e (diff) |
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>
-rw-r--r-- | hw/core/qdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 4eb01345df..ab1d8f52f1 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; |