[libvirt] [PATCH 2/2] qemu: snapshot: Avoid infinite loop if vCPUs can't be resumed

Peter Krempa pkrempa at redhat.com
Fri Feb 5 16:07:29 UTC 2016


In b3d2a42e I've refactored the code and moved the 'cleanup' label.
Unfortunately the code that was originally in the 'endjob' label and
wanted to jump to cleanup is now in the cleanup label. Remove the jump
and let the function finish.
---
 src/qemu/qemu_driver.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index a10671f..6fc11c6 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -14692,7 +14692,6 @@ qemuDomainSnapshotCreateActiveExternal(virConnectPtr conn,
         }

         ret = -1;
-        goto cleanup;
     }

     if (thaw != 0 &&
-- 
2.6.2




More information about the libvir-list mailing list