]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix vmdef usage after domain crash in monitor on device detach
authorJán Tomko <jtomko@redhat.com>
Tue, 16 Dec 2014 14:50:20 +0000 (15:50 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 19 Jan 2015 09:12:07 +0000 (10:12 +0100)
commit6edb97f29af5c266617943ab36534f2f81aeb49a
treee02077fd3252169f26939be91fd614229fe314b8
parentbd1bbd4710d69e76c9b5b68430b2a27135862d3d
Fix vmdef usage after domain crash in monitor on device detach

https://bugzilla.redhat.com/show_bug.cgi?id=1161024

In the device type-specific functions, exit early
if the domain has disappeared, because the cleanup
should have been done by qemuProcessStop.

Check the return value in processDeviceDeletedEvent
and qemuProcessUpdateDevices.

Skip audit and removing the device from live def because
it has already been cleaned up.
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_hotplug.h
src/qemu/qemu_process.c