[PATCH 6.5 484/491] drm/amdgpu: Fix possible null pointer dereference