diff options
author | Roman Li <roman.li@amd.com> | 2024-03-14 01:35:13 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-03-27 16:27:29 +0300 |
commit | 2f10d4a51bbcd938f1f02f16c304ad1d54717b96 (patch) | |
tree | 7b3b3fb16138ccf7ea8059bc9d093860a2898e18 /tools/perf/scripts/python/stackcollapse.py | |
parent | edfa93d87fc46913868481fe8ed3fb62c891ffb5 (diff) | |
download | linux-2f10d4a51bbcd938f1f02f16c304ad1d54717b96.tar.xz |
drm/amd/display: Fix bounds check for dcn35 DcfClocks
[Why]
NumFclkLevelsEnabled is used for DcfClocks bounds check
instead of designated NumDcfClkLevelsEnabled.
That can cause array index out-of-bounds access.
[How]
Use designated variable for dcn35 DcfClocks bounds check.
Fixes: a8edc9cc0b14 ("drm/amd/display: Fix array-index-out-of-bounds in dcn35_clkmgr")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Roman Li <roman.li@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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions