[PATCH 6.1 091/131] drm/amdgpu: add missing NULL check