提交 7ff2267a 编写于 作者: D Dmitry Kasatkin 提交者: Mimi Zohar

ima: ima_initialized is set only if successful

Set ima_initialized only if initialization was successful.
Signed-off-by: NDmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
上级 8445d64d
......@@ -258,7 +258,8 @@ static int __init init_ima(void)
int error;
error = ima_init();
ima_initialized = 1;
if (!error)
ima_initialized = 1;
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册