]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: snapshot: Avoid infinite loop if vCPUs can't be resumed
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Feb 2016 15:57:58 +0000 (16:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Feb 2016 07:50:00 +0000 (08:50 +0100)
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

index a10671f9e63bcc0f043b2966fb67584bc77bc5dc..6fc11c6a08b749e1171c944b9fee0a255df5171b 100644 (file)
@@ -14692,7 +14692,6 @@ qemuDomainSnapshotCreateActiveExternal(virConnectPtr conn,
         }
 
         ret = -1;
-        goto cleanup;
     }
 
     if (thaw != 0 &&