diff options
author | Christian König <deathsimple@vodafone.de> | 2012-07-11 15:12:11 (GMT) |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-07-18 11:17:32 (GMT) |
commit | 246fa345a1b72fddb9b2b81f32abd615a5d1c0af (patch) | |
tree | e3534df96cf437b14107f4df7ec02eac5164ec9e | |
parent | 29935554b384b1b3a7377d6f0b03b21d18a61683 (diff) | |
download | linux-246fa345a1b72fddb9b2b81f32abd615a5d1c0af.tar.xz |
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 <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 76c5b22..7a181c3 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)) { |