[PATCH 6.1 012/143] drm/amdgpu: fix error checking in amdgpu_read_mm_registers for nv