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

drm/amdgpu: fix sdma_v2_4_ring_test_ib

Typo in checking the return code.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
847927bb 815d27a4

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
··· 714 714 DRM_ERROR("amdgpu: IB test timed out\n"); 715 715 r = -ETIMEDOUT; 716 716 goto err1; 717 - } else if (r) { 717 + } else if (r < 0) { 718 718 DRM_ERROR("amdgpu: fence wait failed (%ld).\n", r); 719 719 goto err1; 720 720 }