drm/gma500/cdv: Fix cursor gem obj referencing on cdv
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Sun, 26 May 2013 16:44:48 +0000 (18:44 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Sun, 9 Jun 2013 16:03:57 +0000 (18:03 +0200)
commit70b1304eeedf211fc9fa185b43350bd9ab4c119c
treef3b3355ee12c3dad653d785160afc3661e12ce02
parent3463cf1aad48ef43dd0b4cbd7fed15dcc8d2ca53
drm/gma500/cdv: Fix cursor gem obj referencing on cdv

The internal crtc cursor gem object pointer was never set/updated since
it was required to be set in the first place.

Fixing this will make the pin/unpin count match and prevent cursor
objects from leaking when userspace drops all references to it. Also
make sure we drop the gem obj reference on failure.

This patch only affects Cedarview chips.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/cdv_intel_display.c