[PATCH OLK-6.6 1/2] drm/amdgpu: add error handle to avoid out-of-bounds