From: Yang Wang Date: Thu, 7 May 2026 08:09:51 +0000 (+0800) Subject: drm/amdgpu: fix error return code in mes_v12_1_map_test_bo X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5da1e1dfd15727918aab2c1a79c019f179991e80;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu: fix error return code in mes_v12_1_map_test_bo The function mes_v12_1_map_test_bo incorrectly returned 0 unconditionallyon error path, which would hide the real error code and mislead upperlayers about the failure status. Fix it by returning the correct error code 'r' instead of 0. Fixes: 44e5195fa3d4 ("drm/amdgpu/mes_v12_1: add mes self test"); Signed-off-by: Yang Wang Reviewed-by: Asad Kamal Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c index 1931562ea6b3..4217b3fea0f3 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_1.c @@ -2063,7 +2063,7 @@ static int mes_v12_1_map_test_bo(struct amdgpu_device *adev, error: amdgpu_sync_free(&sync); - return 0; + return r; } static int mes_v12_1_test_ring(struct amdgpu_device *adev, int xcc_id,