From: Matt Turner <matts...@gmail.com>

We were returning 0 in both the success and failure paths. Noticed while
investigating FDO bug 26403.

Signed-off-by: Matt Turner <mattst88 at gmail.com>
---
 drivers/gpu/drm/radeon/radeon_cursor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c 
b/drivers/gpu/drm/radeon/radeon_cursor.c
index b7023ff..4eb67c0 100644
--- a/drivers/gpu/drm/radeon/radeon_cursor.c
+++ b/drivers/gpu/drm/radeon/radeon_cursor.c
@@ -194,7 +194,7 @@ unpin:
 fail:
        drm_gem_object_unreference_unlocked(obj);

-       return 0;
+       return ret;
 }

 int radeon_crtc_cursor_move(struct drm_crtc *crtc,
-- 
1.6.4.4

Reply via email to