[PATCH AUTOSEL 6.12 059/107] drm/amd/display: Adding array index check to prevent memory corruption