[PATCH] drm/radeon/kms: return ret in cursor_set failure path
mattst88 at gmail.com
mattst88 at gmail.com
Sat Jun 19 11:13:45 PDT 2010
From: Matt Turner <mattst88 at 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
More information about the dri-devel
mailing list