[PATCH v3] drm/amdgpu: fix a possible null pointer dereference