drm/radeon: fix order of doing things in radeon_crtc_cursor_set
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Thu, 5 May 2011 00:15:03 +0000 (20:15 -0400)
committerDave Airlie <airlied@redhat.com>
Sun, 8 May 2011 23:16:05 +0000 (09:16 +1000)
commit45e5f6a2ee6aac20e393d44f8a6762104426c81b
treefb607aaa76c95ffc1e7b540063f91972844e185c
parent2bbd4492552867053b5a618a2474297e2b1c355d
drm/radeon: fix order of doing things in radeon_crtc_cursor_set

 if object pin or object lookup in radeon_cursor_set fail, the function
 could leave inconsistent mouse width and hight values in radeon_crtc
 fixed by moving cursor width and height assignments after all
 checks have passed

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cursor.c