mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
qemu: Properly cleanup in security startup error path
Everything after hostdev setup needs to jump to cleanup on error.
This commit is contained in:
parent
6752d11997
commit
b6992818c6
@ -3291,7 +3291,7 @@ static int qemudStartVMDaemon(virConnectPtr conn,
|
|||||||
if (driver->securityDriver &&
|
if (driver->securityDriver &&
|
||||||
driver->securityDriver->domainGenSecurityLabel &&
|
driver->securityDriver->domainGenSecurityLabel &&
|
||||||
driver->securityDriver->domainGenSecurityLabel(vm) < 0)
|
driver->securityDriver->domainGenSecurityLabel(vm) < 0)
|
||||||
return -1;
|
goto cleanup;
|
||||||
|
|
||||||
DEBUG0("Generating setting domain security labels (if required)");
|
DEBUG0("Generating setting domain security labels (if required)");
|
||||||
if (driver->securityDriver &&
|
if (driver->securityDriver &&
|
||||||
|
Loading…
Reference in New Issue
Block a user