aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorRoman Li <Roman.Li@amd.com>2024-06-26 14:08:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-07-01 16:53:24 -0400
commit0ad4b4a2f6357c45fbe444ead1a929a0b4017d03 (patch)
treed68ed9b7d85eca5a14eee0bb4d7d1f1ade0ffcbf /scripts/gdb/linux/mm.py
parent7ae37db29a8bc4d3d116a409308dd98fc3a0b1b3 (diff)
drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport
[Why] Potential out of bounds access in dml2_calculate_rq_and_dlg_params() because the value of out_lowest_state_idx used as an index for FCLKChangeSupport array can be greater than 1. [How] Currently dml2 core specifies identical values for all FCLKChangeSupport elements. Always use index 0 in the condition to avoid out of bounds access. Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Jerry Zuo <jerry.zuo@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 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions