Commit 044f8d3b authored by Gangliang Xie's avatar Gangliang Xie Committed by Alex Deucher
Browse files

drm/amdgpu: return when ras table checksum is error



end the function flow when ras table checksum is error

Signed-off-by: default avatarGangliang Xie <ganglxie@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarKent Russell <kent.russell@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3ee1c726
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
		 */