CVE-2024-46731 drm/amd/pm: fix the Out-of-bounds read warning