[PATCH 6.1 18/85] drm/amdgpu: add error handle to avoid out-of-bounds