[PATCH 6.9 009/157] drm/amdgpu: add error handle to avoid out-of-bounds