qemu: Release the lock on domobj if fails on finding the disk path

This commit is contained in:
Osier Yang 2011-12-20 19:18:49 +08:00
parent 6fdbce1232
commit 33eca17f6a

View 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];