Commit 2f6bfe11 authored by Christian König's avatar Christian König Committed by Dave Airlie
Browse files

drm/radeon: return -ENOENT in fence_wait_next v2

We should signal the caller that we haven't waited at all.

v2: only change fence_wait_next not fence_wait_last.
Signed-off-by: default avatarChristian König <>
Reviewed-by: default avatarMichel Dänzer <>
Reviewed-by: default avatarJerome Glisse <>
Signed-off-by: default avatarDave Airlie <>
parent 96050bca
......@@ -286,7 +286,7 @@ int radeon_fence_wait_next(struct radeon_device *rdev, int ring)
if (list_empty(&rdev->fence_drv[ring].emitted)) {
write_unlock_irqrestore(&rdev->fence_lock, irq_flags);
return 0;
return -ENOENT;
fence = list_entry(rdev->fence_drv[ring],
struct radeon_fence, list);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment