提交 e039a830 编写于 作者: L Luyao Huang 提交者: Erik Skultety

qemu: process: Fix the return value in qemuProcessSEVCreateFile

When commit 6718132d enforced usage of the cleanup label, it forgot to
set the @ret variable to 0 on "success" exit path.
Signed-off-by: NLuyao Huang <lhuang@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 6d490ed0
......@@ -5842,6 +5842,7 @@ qemuProcessSEVCreateFile(const char *configDir,
goto cleanup;
}
ret = 0;
cleanup:
VIR_FREE(configFile);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册