diff options
| author | Hersen Wu <hersenxs.wu@amd.com> | 2024-04-24 16:15:15 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-02 16:18:16 -0400 |
| commit | cf8b16857db702ceb8d52f9219a4613363e2b1cf (patch) | |
| tree | 517df121a4a19bd5a65fec59fb8b62dc406d95fd /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
| parent | 84723eb6068c50610c5c0893980d230d7afa2105 (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_sync.c')
0 files changed, 0 insertions, 0 deletions
