]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu: return when ras table checksum is error
authorGangliang Xie <ganglxie@amd.com>
Mon, 9 Feb 2026 09:32:00 +0000 (17:32 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:47 +0000 (07:20 -0500)
[ Upstream commit 044f8d3b1fac6ac89c560f61415000e6bdab3a03 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index 64dd7a81bff5faa0cbe4515dd707a1d7a6a54ef2..710a8fe79fccd62ae86ae746fda25919326767ec 100644 (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
                 */