drm/amd/display: Prevent potential buffer overflow in map_hw_resources (CVE-2024-26797) | HOL Guard CVE