summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-06-19 14:13:45 -0400
committerDave Airlie <airlied@redhat.com>2010-07-01 11:59:27 +1000
commit4cdb82b95a48a64e5c20bffd63a549675c0d4848 (patch)
tree079d3ecf29042df3483648b3f2b6b9cac1fb1662
parent7c2a9acf856f150a9fc3efbaa0be44f97c30f6ca (diff)
downloadlinux-4cdb82b95a48a64e5c20bffd63a549675c0d4848.tar.bz2
drm/radeon/kms: return ret in cursor_set failure path
We were returning 0 in both the success and failure paths. Noticed while investigating FDO bug 26403. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_cursor.c2
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 b7023fff89eb..4eb67c0e0996 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,