summaryrefslogtreecommitdiff
path: root/scripts/ssl-common.h
diff options
context:
space:
mode:
authorHersen Wu <hersenxs.wu@amd.com>2024-04-24 16:15:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-25 10:45:57 +0200
commitc84632096722fd31251f0957fafc9e90d9a247fd (patch)
treee973fc9d2ae36321b1ee78d7f33fc87f91c9caee /scripts/ssl-common.h
parent31ff06b4a8a835c97a07dc8f572517412b222d0e (diff)
drm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links
commit cf8b16857db702ceb8d52f9219a4613363e2b1cf upstream. [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> [Minor conflict resolved due to code context change. And the macro MAX_LINKS is introduced by Commit 60df5628144b ("drm/amd/display: handle invalid connector indices") after 6.10. So here we still use the original array length MAX_PIPES * 2] Signed-off-by: Jianqi Ren <jianqi.ren.cn@windriver.com> Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/ssl-common.h')
0 files changed, 0 insertions, 0 deletions