[PATCH 6.5 065/491] drm/amdgpu: Fix potential null pointer derefernce