qemu: Properly cleanup in security startup error path

Everything after hostdev setup needs to jump to cleanup on error.
This commit is contained in:
Cole Robinson 2010-05-17 11:24:16 -04:00
parent 6752d11997
commit b6992818c6

View File

@ -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 &&