]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSnapshotRevertInactive: Ensure all error paths handle transient domains properly
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 May 2025 14:12:31 +0000 (16:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 16 May 2025 12:48:20 +0000 (14:48 +0200)
commitc4f70cc4d9ac362233fd3fd449df226fdde8d5de
treefb8def228ca50e491a9e6c7b65505cf5f456dbab
parent542f1378bfa6ef08b1aa7d1075ee24e5fb6854a4
qemuSnapshotRevertInactive: Ensure all error paths handle transient domains properly

Only the internal snapshot code paths were able to handle transient
domains properly in case when startup of the process failed.

Unify the error paths on an 'error' label with proper handling.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_snapshot.c