CVE-2024-46726 drm/amd/display: Ensure index calculation will not overflow