]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Release the lock on domobj if fails on finding the disk path
authorOsier Yang <jyang@redhat.com>
Tue, 20 Dec 2011 11:18:49 +0000 (19:18 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 21 Dec 2011 02:22:08 +0000 (10:22 +0800)
src/qemu/qemu_driver.c

index 176a324ff2e7079976aada2fb3c97b9e25f803eb..c908135c5ae5893b87ca86f269d2c5de301e5a7e 100644 (file)
@@ -7453,7 +7453,7 @@ qemuDomainBlockResize (virDomainPtr dom,
     if ((i = virDomainDiskIndexByName(vm->def, path, false)) < 0) {
         qemuReportError(VIR_ERR_INVALID_ARG,
                         _("invalid path: %s"), path);
-        goto cleanup;
+        goto endjob;
     }
     disk = vm->def->disks[i];