Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gangliang Xie and committed by
Alex Deucher
044f8d3b 3ee1c726

+3 -1
+3 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
··· 1701 1701 } 1702 1702 1703 1703 res = __verify_ras_table_checksum(control); 1704 - if (res) 1704 + if (res) { 1705 1705 dev_err(adev->dev, 1706 1706 "RAS table incorrect checksum or error:%d\n", 1707 1707 res); 1708 + return -EINVAL; 1709 + } 1708 1710 1709 1711 /* Warn if we are at 90% of the threshold or above 1710 1712 */