mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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>
This commit is contained in:
parent
3ee1c72606
commit
044f8d3b1f
|
|
@ -1701,10 +1701,12 @@ int amdgpu_ras_eeprom_check(struct amdgpu_ras_eeprom_control *control)
|
|||
}
|
||||
|
||||
res = __verify_ras_table_checksum(control);
|
||||
if (res)
|
||||
if (res) {
|
||||
dev_err(adev->dev,
|
||||
"RAS table incorrect checksum or error:%d\n",
|
||||
res);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Warn if we are at 90% of the threshold or above
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user