| Submitter | Kevin Wolf |
|---|---|
| Date | July 6, 2010, 3:33 p.m. |
| Message ID | <1278430406-18667-9-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/58038/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/qdev.c b/hw/qdev.c index 61f999c..00ceada 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -326,8 +326,10 @@ void qdev_init_nofail(DeviceState *dev) { DeviceInfo *info = dev->info; - if (qdev_init(dev) < 0) - hw_error("Initialization of device %s failed\n", info->name); + if (qdev_init(dev) < 0) { + error_report("Initialization of device %s failed\n", info->name); + exit(1); + } } /* Unlink device from bus and free the structure. */