mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 22:55:53 -04:00
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>
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user