diff options
author | Bharata B Rao <bharata@linux.vnet.ibm.com> | 2015-06-29 13:50:24 +0530 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2015-07-03 17:47:58 -0300 |
commit | 8e23184b6b2f8426041854b18fb56a3ff197d5a0 (patch) | |
tree | 7d9d763571d64b7f63b6439cd8afeecbfefe016a /hw/i386 | |
parent | 43bbb49ef7032a8bfdafbd02d0286512af161089 (diff) |
pc: Abort if HotplugHandlerClass::plug() fails
HotplugHandlerClass::plug() shouldn't fail and hence use error_abort
to abort if it fails.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 8df1f3e033..a66416d188 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1577,7 +1577,7 @@ static void pc_dimm_plug(HotplugHandler *hotplug_dev, } hhc = HOTPLUG_HANDLER_GET_CLASS(pcms->acpi_dev); - hhc->plug(HOTPLUG_HANDLER(pcms->acpi_dev), dev, &local_err); + hhc->plug(HOTPLUG_HANDLER(pcms->acpi_dev), dev, &error_abort); out: error_propagate(errp, local_err); } |