提交 2f6bfe11 编写于 作者: C Christian König 提交者: Dave Airlie

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: NChristian König <deathsimple@vodafone.de>
Reviewed-by: NMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: NJerome Glisse <jglisse@redhat.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 96050bca
...@@ -286,7 +286,7 @@ int radeon_fence_wait_next(struct radeon_device *rdev, int ring) ...@@ -286,7 +286,7 @@ int radeon_fence_wait_next(struct radeon_device *rdev, int ring)
} }
if (list_empty(&rdev->fence_drv[ring].emitted)) { if (list_empty(&rdev->fence_drv[ring].emitted)) {
write_unlock_irqrestore(&rdev->fence_lock, irq_flags); write_unlock_irqrestore(&rdev->fence_lock, irq_flags);
return 0; return -ENOENT;
} }
fence = list_entry(rdev->fence_drv[ring].emitted.next, fence = list_entry(rdev->fence_drv[ring].emitted.next,
struct radeon_fence, list); struct radeon_fence, list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册