[PATCH 6.1 011/143] drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc21