First patch is a small clean up to the error handling code in qdev_device_add(), and the second patch adds a proper check for the availability of a hotplug controller to prevent the possibility of a crash with device_del.
Thomas Huth (2): qdev_monitor: Simplify error handling in qdev_device_add() qdev: Check for the availability of a hotplug controller before adding a device hw/core/qdev.c | 28 ++++++++++++++++++++-------- include/hw/qdev-core.h | 1 + qdev-monitor.c | 26 +++++++++++++++----------- 3 files changed, 36 insertions(+), 19 deletions(-) -- 1.8.3.1