[PATCH 6.6 331/583] drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c