drm/amd/display: Fix potential index out of bounds in color transformation function (CVE-2024-38552) | HOL Guard CVE