]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: fix buffer overruns warnings
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Thu, 23 Apr 2026 02:12:25 +0000 (22:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 May 2026 13:56:53 +0000 (09:56 -0400)
commit531fd5766d5c5810ea3ee3b4e7bd8c300f02fa8a
tree7891f4d8012f271b017391b3a0a8dd19100209c8
parentd05a1c347ca54c02dbcf6a6d32f6b2d9998ceae4
drm/amd/display: fix buffer overruns warnings

[Why & How]
Fixes a warning by adding bounds checks and index validation in dml2_0
sources to address static analysis warnings. Ensures safe array access and
prevents out-of-bounds reads by validating indices before use, improving
robustness and reliability in the affected files.

Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_dcn42.c