summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-08-17 14:10:37 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-08-19 18:26:30 +0200
commit847927bb3db2b18744ddec1b4fbb274ac7e05199 (patch)
tree69cb580b17c8467e32a7e6e9aa35ff822272506e /drivers
parentdrm/amdgpu: fix amdgpu_move_blit on 32bit systems (diff)
downloadlinux-847927bb3db2b18744ddec1b4fbb274ac7e05199.tar.xz
linux-847927bb3db2b18744ddec1b4fbb274ac7e05199.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c2
1 files changed, 1 insertions, 1 deletions
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;
}