[PATCH 6.6 019/137] drm/amdgpu: add error handle to avoid out-of-bounds