]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainAttachDeviceDiskLiveInternal: Fix jumps on error
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Nov 2023 16:17:38 +0000 (17:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2023 13:31:05 +0000 (14:31 +0100)
commit16f8daf2dfcbd89e0e2e66c3a75e308c3e5ceb5b
tree17d72459a95b359a75294224976778c01c7a90fe
parenta1f7faa40216284d9d53dcbd9a18e36a8764d4a0
qemuDomainAttachDeviceDiskLiveInternal: Fix jumps on error

When I've originally refactored the function in commit 0d981bcefcb5defa2
the logic was still correct, but then later in commit 52f865543920b0
I've moved most of the image setup logic into the function neglecting to
add the 'goto cleanup;' needed to skip over the setup of the disk
images.

Fixes: 52f865543920b0cc5ba93f4407c1b2efdffb8ddc
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c