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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=847927bb3db2b18744ddec1b4fbb274ac7e05199;p=linux-beck.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 1351c7e834a2..a64715d90503 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; }