]> 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)
commit4a7f055da16857245a810f52bb947ae1f909012e
tree32073abf1d0aac112c3d730e9d44e78fe430929f
parentfb2f72ab1e3aa8a1050692ffcb3da7ddbe6400e7
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