[PATCH AUTOSEL 6.11 162/244] drm/amdgpu: add list empty check to avoid null pointer issue