CVE-2024-46821 drm/amd/pm: Fix negative array index read