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
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to