drm/amdgpu: Fix ras debugfs data parse
authorxinhui pan <xinhui.pan@amd.com>
Mon, 11 Mar 2019 10:10:57 +0000 (18:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:51 +0000 (15:36 -0500)
commitb076296b0fb39f142bdc183d4bab91e7204c53bb
tree833d1a8a74aa139707db10228be603431d133fe2
parent5caf466a6e42beee88a707105975a1d2324b659c
drm/amdgpu: Fix ras debugfs data parse

Unzero char is accepted by sscanf, so when data is structure but
unexpectedly return error invalid;

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c