提交 b6992818 编写于 作者: C Cole Robinson

qemu: Properly cleanup in security startup error path

Everything after hostdev setup needs to jump to cleanup on error.
上级 6752d119
......@@ -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 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册