Searched hist:e6fc9568c865f2f81499475a4e322cd563fdfd90 (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/hw/ppc/ |
H A D | spapr_drc.h | diff e6fc9568c865f2f81499475a4e322cd563fdfd90 Mon Aug 31 18:53:52 CDT 2015 Bharata B Rao <bharata@linux.vnet.ibm.com> spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add
If drmgr is used in the guest to hotplug a device before a device_add has been issued via the QEMU monitor, QEMU segfaults in configure_connector call. This occurs due to accessing of NULL FDT which otherwise would have been created and associated with the DRC during device_add command.
Check for NULL FDT and return failure from configure_connector call. As per PAPR+, an error value of -9003 seems appropriate for this failure.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Cc: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_rtas.c | diff e6fc9568c865f2f81499475a4e322cd563fdfd90 Mon Aug 31 18:53:52 CDT 2015 Bharata B Rao <bharata@linux.vnet.ibm.com> spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add
If drmgr is used in the guest to hotplug a device before a device_add has been issued via the QEMU monitor, QEMU segfaults in configure_connector call. This occurs due to accessing of NULL FDT which otherwise would have been created and associated with the DRC during device_add command.
Check for NULL FDT and return failure from configure_connector call. As per PAPR+, an error value of -9003 seems appropriate for this failure.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Cc: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|