summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2025-01-17 22:37:11 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-02-03 20:12:04 +0300
commit8adbb2a98b00926315fd513b5fe2596b5716b82d (patch)
tree45a74992991b0f3ddeed91ec13f8cb1a5654e2cc /tools/perf/scripts/python/export-to-sqlite.py
parent2255b40cacc2e5ef1b127770fc1808c60de4a2fc (diff)
downloadlinux-8adbb2a98b00926315fd513b5fe2596b5716b82d.tar.xz
drm/amd/display: Fix out-of-bound accesses
[WHAT & HOW] hpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4), but location can have size up to 6. As a result, it is necessary to check location against MAX_HPO_DP2_ENCODERS. Similiarly, disp_cfg_stream_location can be used as an array index which should be 0..5, so the ASSERT's conditions should be less without equal. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3904 Reviewed-by: Austin Zheng <Austin.Zheng@amd.com> Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions