drm/radeon: return an error if there is nothing to wait for
authorChristian König <deathsimple@vodafone.de>
Wed, 11 Jul 2012 15:12:11 +0000 (17:12 +0200)
committerChristian König <deathsimple@vodafone.de>
Wed, 18 Jul 2012 11:17:32 +0000 (13:17 +0200)
Otherwise the sa managers out of memory
handling doesn't work.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fence.c

index 76c5b22..7a181c3 100644 (file)
@@ -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)) {