drm/amd/display: Adding array index check to prevent memory corruption (CVE-2024-56784) | HOL Guard CVE