summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorZide Chen <zide.chen@intel.com>2026-06-02 07:49:03 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-06-04 11:38:36 +0200
commit3c19ea24f02658c4b8ad364458fae4d77fdb3fae (patch)
tree5599c5dbb00dcf144d2ca963cc28ef3af4c45783 /rust/kernel
parent63f48abd55d0417996bca86022925c853a2b436b (diff)
perf/x86/intel/uncore: Guard against invalid box control address
Theoretically, intel_uncore_find_discovery_unit() could return NULL, e.g., when a CPU die is offline during uncore enumeration and its PMU units are not added to the discovery RB-tree. Guard against a NULL return value and the resulting invalid box control address (0) before accessing hardware. Signed-off-by: Zide Chen <zide.chen@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://patch.msgid.link/20260602144908.263680-3-zide.chen@intel.com
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions