Skip to content

Commit

Permalink
drm/radeon: return an error if there is nothing to wait for
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian König committed Jul 18, 2012
1 parent 2993555 commit 246fa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 246fa34

Please sign in to comment.