mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Release the lock on domobj if fails on finding the disk path
This commit is contained in:
parent
6fdbce1232
commit
33eca17f6a
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user