summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2026-08-31 17:22:16 +0800
committerDave Jiang <dave.jiang@intel.com>2026-09-17 20:05:17 -0700
commit58b2b1ef28024093063de536c05aaea792226e24 (patch)
treebabba54c34700d62643eb3719ef042140a0800c3 /tools/perf/scripts/python/libxed.py
parent97b74de26c81885a6447f5fe87641a2a136f8c7c (diff)
downloadlinux-next-58b2b1ef28024093063de536c05aaea792226e24.tar.gz
linux-next-58b2b1ef28024093063de536c05aaea792226e24.zip
cxl/port: Fix uninitialized coordinates reported for RCDs
cxl_endpoint_get_perf_coordinates() returns success for a Restricted CXL Device without calculating coordinates, so the caller's output array is left uninitialized. Callers treat it as valid and can expose the stack residue as access coordinates. Initialize the coordinates to zero before returning for an RCD. Zeroing in the helper rather than at the caller keeps the @coord output contract the exported function documents. Reported by the Sashiko review bot. Fixes: 5d211c709059 ("cxl: Fix cxl_endpoint_get_perf_coordinate() support for RCH") Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Reviewed-by: Richard Cheng <icheng@nvidia.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Link: https://patch.msgid.link/20260831092216.540644-3-kanie@linux.alibaba.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions