Skip to contentSkip to conversation

drm/radeon/kms: return ret in cursor_set failure path

PATCH New [email protected] 1 participant 1 message Jun 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/kms: return ret in cursor_set failure path

From: Matt Turner <[email protected]>

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

---
 drivers/gpu/drm/radeon/radeon_cursor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
index b7023ff..4eb67c0 100644
@@ -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,
Signature · 1 line
1.6.4.4