Commit 636e126e authored by Kan Liang's avatar Kan Liang Committed by Zheng Zengkai
Browse files

perf/x86/intel/uncore: Clean up error handling path of iio mapping

stable inclusion
from stable-5.10.53
commit 7412c988fe123a064d67778611a5e40fd50bfd20
bugzilla: 175574 https://gitee.com/openeuler/kernel/issues/I4DTUX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7412c988fe123a064d67778611a5e40fd50bfd20



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

[ Upstream commit d4ba0b06 ]

The error handling path of iio mapping looks fragile. We already fixed
one issue caused by it, commit f797f05d ("perf/x86/intel/uncore:
Fix for iio mapping on Skylake Server"). Clean up the error handling
path and make the code robust.

Reported-by: default avatargushengxian <gushengxian@yulong.com>
Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/40e66cf9-398b-20d7-ce4d-433be6e08921@linux.intel.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 174aefd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment