mirror of https://gitee.com/openkylin/libvirt.git
qemu: Unlock the NWFilter update lock by leaving via the cleanup label
Fix a locking problem by leaving the function via the cleanup label. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
4090e15399
commit
a4209f5379
|
@ -6140,7 +6140,7 @@ qemuDomainCreateWithFlags(virDomainPtr dom, unsigned int flags)
|
|||
virNWFilterReadLockFilterUpdates();
|
||||
|
||||
if (!(vm = qemuDomObjFromDomain(dom)))
|
||||
return -1;
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainCreateWithFlagsEnsureACL(dom->conn, vm->def) < 0)
|
||||
goto cleanup;
|
||||
|
|
Loading…
Reference in New Issue