提交 81ef5294 编写于 作者: X Xie XiuQi

arm64/mpam: mon: add WARN_ON for debug free_pmg

hulk inclusion
category: feature
bugzilla: 5510
CVE: NA
Signed-off-by: NXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 4521ac5c
......@@ -64,6 +64,8 @@ int alloc_pmg(void)
void free_pmg(u32 pmg)
{
WARN_ON(!pmg);
pmg_free_map |= 1 << pmg;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册