Commit ca4172c8 authored by Wang Wensheng's avatar Wang Wensheng Committed by Yang Yingliang
Browse files

numa: Restrict the usage of cdm_node_to_ddr_node()

ascend inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4D63I


CVE: NA

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

Check whether the topological structure of the DDR/HBM brokes our
assumption or not. If it got broken we just return the input nid, or an
invalid nid could be returned and it may break the kernel.

Fixes: aabbfd385ab2 ("numa: Move the management structures for cdm nodes to ddr")
Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8ea98e6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment