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:
Gangliang Xie 2026-02-09 17:32:00 +08:00 committed by Alex Deucher
parent 3ee1c72606
commit 044f8d3b1f

View File

@ -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
*/