diff options
author | Christian König <deathsimple@vodafone.de> | 2012-07-11 17:12:11 +0200 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-07-18 13:17:32 +0200 |
commit | 246fa345a1b72fddb9b2b81f32abd615a5d1c0af (patch) | |
tree | e3534df96cf437b14107f4df7ec02eac5164ec9e /drivers | |
parent | 29935554b384b1b3a7377d6f0b03b21d18a61683 (diff) | |
download | linux-246fa345a1b72fddb9b2b81f32abd615a5d1c0af.tar.gz linux-246fa345a1b72fddb9b2b81f32abd615a5d1c0af.tar.bz2 linux-246fa345a1b72fddb9b2b81f32abd615a5d1c0af.zip |
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>
Diffstat (limited to 'drivers')
-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 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)) { |