[PATCH 5.11 224/342] drm/amdgpu: fix NULL pointer dereference