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