提交 8ead6437 编写于 作者: W wenzhiwei11 提交者: Wang ShaoBo

arm64/mpam: fix the problem that the ret variable is not initialized

kylin inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4AHUL?from=project-issue
CVE: NA

---------------------------------------------------

initialize the value "ret" in "schemata_list_init()"
Signed-off-by: N温志伟 <wenzhiwei@kylinos.cn>
Reviewed-by: Jian Cheng <cj.chengjian(a)huawei.com>
Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
上级 cf74629c
......@@ -127,7 +127,7 @@ static int add_schema(enum resctrl_conf_type t, struct resctrl_resource *r)
int schemata_list_init(void)
{
int ret;
int ret = 0;
struct mpam_resctrl_res *res;
struct resctrl_resource *r;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册