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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=246fa345a1b72fddb9b2b81f32abd615a5d1c0af;p=linux-beck.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 76c5b22bfd22..7a181c386cbd 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)) {