[PATCH 5.4 174/202] drm/amdgpu: add error handle to avoid out-of-bounds