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