mbox series

[v2,0/2] Check for the availability of a hotplug controller before adding a device

Message ID 1507206738-816-1-git-send-email-thuth@redhat.com
Headers show
Series Check for the availability of a hotplug controller before adding a device | expand

Message

Thomas Huth Oct. 5, 2017, 12:32 p.m. UTC
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(-)