[PATCH 6.5 125/191] drm/amdgpu: add missing NULL check