[PATCH 5.15 355/402] drm/amdgpu: add error handle to avoid out-of-bounds