drm/gma500/psb: Fix cursor gem obj referencing on psb
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Sun, 26 May 2013 15:56:19 +0000 (17:56 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Sun, 9 Jun 2013 16:03:32 +0000 (18:03 +0200)
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 Poulsbo chips.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>

No differences found