On 2021/3/17 21:47, Zhang ming wrote:
From: Zhang Ming 154842638@qq.com
openEuler inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I3BPPX CVE: NA
The default branch in switch will not run at present, but there may be related extensions in the future, which may lead to memory leakage
Reviewed-by: Xie XiuQi xiexiuqi@huawei.com
Signed-off-by: Zhang Ming 154842638@qq.com Reported-by: Wang ShaoBo bobo.shaobowang@huawei.com Suggested-by: Jian Cheng cj.chengjian@huawei.com
arch/arm64/kernel/mpam/mpam_ctrlmon.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/mpam/mpam_ctrlmon.c b/arch/arm64/kernel/mpam/mpam_ctrlmon.c index aae585e7d7df..a4a298a455e0 100644 --- a/arch/arm64/kernel/mpam/mpam_ctrlmon.c +++ b/arch/arm64/kernel/mpam/mpam_ctrlmon.c @@ -78,6 +78,7 @@ static int add_schema(enum resctrl_conf_type t, struct resctrl_resource *r) suffix = ""; break; default:
return -EINVAL; }kfree(s);