[PATCH 5.10 195/299] drm/amdgpu: fix NULL pointer dereference