[PATCH 6.7 064/162] drm/amd/display: Prevent potential buffer overflow in map_hw_resources