[libvirt] [PATCH 0/2] Fix crash from live attach of device (for 4.1.0)

John Ferlan posted 2 patches 6 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180301130339.7158-1-jferlan@redhat.com
Test syntax-check passed
src/conf/domain_conf.c  | 5 ++++-
src/qemu/qemu_hotplug.c | 8 ++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
[libvirt] [PATCH 0/2] Fix crash from live attach of device (for 4.1.0)
Posted by John Ferlan 6 years, 1 month ago
Fix is in patch 1/2 - if virDomainDefCompatibleDevice is called with
a NULL @oldDev, then call to virDomainDeviceGetInfo would fail rather
spectacularly.

Patch 2 extends the similar fix/adjustment from the update path to
the add path for the cdrom/floppy since the add path since it's
possible to use attach device as well as update device.

John Ferlan (2):
  conf: Fix crash in virDomainDefCompatibleDevice
  qemu: Call virDomainDefCompatibleDevice when live add cdrom/floppy

 src/conf/domain_conf.c  | 5 ++++-
 src/qemu/qemu_hotplug.c | 8 ++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.13.6

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list