drm/amd/display: Check link_index before accessing dc->links[] (CVE-2024-46813) | HOL Guard CVE