cacheinfo: workaround cacheinfo's info_list uninitialized error
hulk inclusion category: bugfix bugzilla: 48265 CVE: NA -------------------------------- Workaround cacheinfo's info_list uninitialized error in some special cases, such as free_cache_attributes() free info_list but not set num_leaves to zero when PPTT is not supported. this solution lasts until upstream issue resolved. Fixes: 950e5edb ("drivers: base: cacheinfo: Add helper to search cacheinfo by of_node") Fixes: 709c4362 ("cacheinfo: Move resctrl's get_cache_id() to the cacheinfo header file") Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com> Reviewed-by: NJian Cheng <cj.chengjian@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录