mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-05 18:56:51 -05: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:
@@ -3291,7 +3291,7 @@ static int qemudStartVMDaemon(virConnectPtr conn,
|
||||
if (driver->securityDriver &&
|
||||
driver->securityDriver->domainGenSecurityLabel &&
|
||||
driver->securityDriver->domainGenSecurityLabel(vm) < 0)
|
||||
return -1;
|
||||
goto cleanup;
|
||||
|
||||
DEBUG0("Generating setting domain security labels (if required)");
|
||||
if (driver->securityDriver &&
|
||||
|
||||
Reference in New Issue
Block a user