[PATCH AUTOSEL 6.11 48/87] drm/amd/display: Adding array index check to prevent memory corruption