drm/amdgpu: fix no bad_pages issue after umc ue injection
authorDennis Li <Dennis.Li@amd.com>
Tue, 5 Jan 2021 00:37:21 +0000 (08:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Jan 2021 21:23:10 +0000 (16:23 -0500)
commit8a82b347e8732fd2b68d26a6e9f0d9a1c397560d
tree1ff03d1349a4f8cd0649d628a503ee08fde0e003
parente6d5c64efaa34aae3815a9afeb1314a976142e83
drm/amdgpu: fix no bad_pages issue after umc ue injection

old code wrongly used the bad page status as the function return value,
which cause amdgpu_ras_badpages_read always return failed.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c