From: Christian König Date: Wed, 11 Jul 2012 15:12:11 +0000 (+0200) Subject: drm/radeon: return an error if there is nothing to wait for X-Git-Tag: v3.6-rc1~83^2~34^2~18 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=246fa345a1b72fddb9b2b81f32abd615a5d1c0af;p=~emulex%2Finfiniband.git drm/radeon: return an error if there is nothing to wait for Otherwise the sa managers out of memory handling doesn't work. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 76c5b22bfd2..7a181c386cb 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -331,7 +331,7 @@ static int radeon_fence_wait_any_seq(struct radeon_device *rdev, /* nothing to wait for ? */ if (ring == RADEON_NUM_RINGS) { - return 0; + return -ENOENT; } while (!radeon_fence_any_seq_signaled(rdev, target_seq)) {