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-20 11:45:19 -04:00
parent 6752d11997
commit b6992818c6
+1 -1
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 &&