]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita609e373f69cb095f2010456fde2bce8e32311f5
tree32073abf1d0aac112c3d730e9d44e78fe430929f
parentbffef93735d7699d9f0519ada76e97432e2e6d37
drm/gma500/psb: Fix cursor gem obj referencing on psb

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>
drivers/gpu/drm/gma500/psb_intel_display.c