summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorHersen Wu <hersenxs.wu@amd.com>2024-04-24 16:15:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-05-02 16:18:16 -0400
commitcf8b16857db702ceb8d52f9219a4613363e2b1cf (patch)
tree517df121a4a19bd5a65fec59fb8b62dc406d95fd /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parent84723eb6068c50610c5c0893980d230d7afa2105 (diff)
drm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links
[Why] Coverity report OVERRUN warning. There are only max_links elements within dc->links. link count could up to AMDGPU_DM_MAX_DISPLAY_INDEX 31. [How] Make sure link count less than max_links. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions