From: Michel Dänzer Date: Tue, 7 Jul 2015 07:27:28 +0000 (+0900) Subject: drm/radeon: Clean up reference counting and pinning of the cursor BOs X-Git-Tag: omap-for-v4.2/fixes-rc2-v2~18^2~3^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd404af0c930104462aa91344f07d002cf8248ed;p=pandora-kernel.git drm/radeon: Clean up reference counting and pinning of the cursor BOs Take a GEM reference for and pin the new cursor BO, unpin and drop the GEM reference for the old cursor BO in radeon_crtc_cursor_set2, and use radeon_crtc->cursor_addr in radeon_set_cursor. This fixes radeon_cursor_reset accidentally incrementing the cursor BO pin count, and cleans up the code a little. Cc: stable@vger.kernel.org Reviewed-by: Grigori Goronzy Reviewed-by: Christian König Signed-off-by: Michel Dänzer Signed-off-by: Alex Deucher --- Reading git-diff-tree failed