drm/radeon/kms: return ret in cursor_set failure path
authorMatt Turner <mattst88@gmail.com>
Sat, 19 Jun 2010 18:13:45 +0000 (14:13 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Jul 2010 01:59:27 +0000 (11:59 +1000)
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>
drivers/gpu/drm/radeon/radeon_cursor.c

index b7023fff89eb258b00d6aee84e7632954fe00384..4eb67c0e0996e539b9ad46242b25ef0070e8dfeb 100644 (file)
@@ -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,