aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
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 /drivers/gpu
parentdrm/ttm: non pooled page allocation should have GFP_USER set (diff)
downloadlinux-dev-4cdb82b95a48a64e5c20bffd63a549675c0d4848.tar.xz
linux-dev-4cdb82b95a48a64e5c20bffd63a549675c0d4848.zip
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>
Diffstat (limited to 'drivers/gpu')
-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,