]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcfd6ec7bd5202fd20a3684ed3c2ebc6f58a59d1
treefb607aaa76c95ffc1e7b540063f91972844e185c
parent9606241de2dc2bceab1d0727c7dcad732fe1f065
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