OSDN Git Service

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>
Tue, 5 Jan 2021 16:35:33 +0000 (11:35 -0500)
commit732f2a307c1ea2b8e723576e92290e22e923d3e6
tree5079e99fe1bd3f3fa9fbec767df7203af752eb9d
parent0d232dada3e4a0606e53873f90b2e6dc0c0c5b9b
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