[Qemu-devel] [PATCH v2 0/2] Check for the availability of a hotplug controller before adding a device

Thomas Huth posted 2 patches 6 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1507206738-816-1-git-send-email-thuth@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
hw/core/qdev.c         | 28 ++++++++++++++++++++--------
include/hw/qdev-core.h |  1 +
qdev-monitor.c         | 26 +++++++++++++++-----------
3 files changed, 36 insertions(+), 19 deletions(-)
[Qemu-devel] [PATCH v2 0/2] Check for the availability of a hotplug controller before adding a device
Posted by Thomas Huth 6 years, 6 months ago
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