drm/amdgpu: Fix out-of-bounds read when update mapping