Skip to content

Commit

Permalink
drm/radeon/kms: return ret in cursor_set failure path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Turner authored and Dave Airlie committed Jul 1, 2010
1 parent 7c2a9ac commit 4cdb82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ int radeon_crtc_cursor_set(struct drm_crtc *crtc,
fail:
drm_gem_object_unreference_unlocked(obj);

return 0;
return ret;
}

int radeon_crtc_cursor_move(struct drm_crtc *crtc,
Expand Down

0 comments on commit 4cdb82b

Please sign in to comment.