]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix detaching from persistent def in qemuDomainDetachDeviceAliasLiveAndConfig
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 07:35:12 +0000 (09:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 13:05:57 +0000 (15:05 +0200)
commitd7ca39e0fb7f795d6431a76c73e7828ffded4f2a
tree47dcaa19d2f8f19cfbeabc720b2ed23b893a975c
parent234ce7d02f4bfd4d80c1fbcd7e1545f31bae5498
qemu: Fix detaching from persistent def in qemuDomainDetachDeviceAliasLiveAndConfig

The code that detaches the device from persistent definition copies the
persistent definition first so that it can easily be rolled back. The
actual detaching is then made in the copy which is assigned back on
success (if the live operation succeeded as well).

This is not the case in qemuDomainDetachDeviceAliasLiveAndConfig where
the definition was copied and put back, but the detaching happened from
the other object which was overwritten.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c