diff options
author | Christian König <deathsimple@vodafone.de> | 2012-05-02 13:11:15 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-03 08:16:17 (GMT) |
commit | 2f6bfe116e691eacef1aa41e4986200b20d67a0a (patch) | |
tree | 3bf2edc37929f8f8c5766788241ae0a3849e1f58 /drivers/gpu/drm | |
parent | 96050bca22f4fe6c8db175e02c8530a9720e5e9b (diff) | |
download | linux-2f6bfe116e691eacef1aa41e4986200b20d67a0a.tar.xz |
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: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-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 1a9765a..2fbbc34 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -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].emitted.next, struct radeon_fence, list); |