[PATCH AUTOSEL 6.5 22/37] drm/amdgpu: Fix potential null pointer derefernce