From: Christian König Date: Wed, 17 Aug 2016 12:10:37 +0000 (+0200) Subject: drm/amdgpu: fix sdma_v2_4_ring_test_ib X-Git-Tag: v4.14-rc1~2577^2~3^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=847927bb3db2b18744ddec1b4fbb274ac7e05199;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: fix sdma_v2_4_ring_test_ib Typo in checking the return code. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Chunming Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c index 1351c7e..a64715d 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c @@ -714,7 +714,7 @@ static int sdma_v2_4_ring_test_ib(struct amdgpu_ring *ring, long timeout) DRM_ERROR("amdgpu: IB test timed out\n"); r = -ETIMEDOUT; goto err1; - } else if (r) { + } else if (r < 0) { DRM_ERROR("amdgpu: fence wait failed (%ld).\n", r); goto err1; }