drm/amdgpu: fix typo in amdgpu_ras_aca_sysfs_read() function
authorYang Wang <kevinyang.wang@amd.com>
Mon, 27 May 2024 07:40:38 +0000 (15:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:09:48 +0000 (14:09 -0400)
fix typo "info.ue_count" in amdgpu_ras_aca_sysfs_read() function.

Fixes: 865d3397630b ("drm/amdgpu: add aca deferred error type support")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 8073716bc5ac8382270e8162c7b27fbe94238f13..db4a811cc0f5dd3922e3344ab4b9002e56c8d002 100644 (file)
@@ -1299,7 +1299,7 @@ ssize_t amdgpu_ras_aca_sysfs_read(struct device *dev, struct device_attribute *a
                return -EINVAL;
 
        return sysfs_emit(buf, "%s: %lu\n%s: %lu\n%s: %lu\n", "ue", info.ue_count,
-                         "ce", info.ce_count, "de", info.ue_count);
+                         "ce", info.ce_count, "de", info.de_count);
 }
 
 static int amdgpu_ras_query_error_status_helper(struct amdgpu_device *adev,