Skip to content

Commit 044f8d3

Browse files
Gangliang Xiealexdeucher
authored andcommitted
drm/amdgpu: return when ras table checksum is error
end the function flow when ras table checksum is error Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 3ee1c72 commit 044f8d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,10 +1701,12 @@ int amdgpu_ras_eeprom_check(struct amdgpu_ras_eeprom_control *control)
17011701
}
17021702

17031703
res = __verify_ras_table_checksum(control);
1704-
if (res)
1704+
if (res) {
17051705
dev_err(adev->dev,
17061706
"RAS table incorrect checksum or error:%d\n",
17071707
res);
1708+
return -EINVAL;
1709+
}
17081710

17091711
/* Warn if we are at 90% of the threshold or above
17101712
*/

0 commit comments

Comments
 (0)