drm/gma500/psb: Unpin framebuffer on crtc disable
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 5 Jun 2013 12:24:01 +0000 (14:24 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2013 01:16:57 +0000 (02:16 +0100)
commitf5c265c7952623969967def921652c12448cbf66
treec1f4cdc9a0e880d9bccb751fdf8a659880390bec
parent696a09ee1eaf62178a4e2c75af61048a6acdea5f
drm/gma500/psb: Unpin framebuffer on crtc disable

commit 820de86a90089ee607d7864538c98a23b503c846 upstream.

The framebuffer needs to be unpinned in the crtc->disable callback
because of previous pinning in psb_intel_pipe_set_base(). This will fix
a memory leak where the framebuffer was released but not unpinned
properly. This patch only affects Poulsbo.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=889511
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=812113
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/gma500/psb_intel_display.c