aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/psb_drv.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-04-25 09:36:13 -0400
committerDave Airlie <airlied@redhat.com>2012-04-27 04:22:57 -0400
commit1896344b181549cea0ab38a810f4f8efcd6ecafb (patch)
treee1276671511ad4b3d0f5bc64d9a1808846296270 /drivers/gpu/drm/gma500/psb_drv.c
parentc51a3fd66c3881b692335a7fe1654b0b08a90a21 (diff)
gma500: Fix leak of uncached page
This was reported a long time ago (and I apologize to whoever it was that reported it as I've lost the original report). Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_drv.c')
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index c34adf9d910a..d5a6eab8227e 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -246,6 +246,7 @@ static int psb_driver_unload(struct drm_device *dev)
246 } 246 }
247 psb_gtt_takedown(dev); 247 psb_gtt_takedown(dev);
248 if (dev_priv->scratch_page) { 248 if (dev_priv->scratch_page) {
249 set_pages_wb(dev_priv->scratch_page, 1);
249 __free_page(dev_priv->scratch_page); 250 __free_page(dev_priv->scratch_page);
250 dev_priv->scratch_page = NULL; 251 dev_priv->scratch_page = NULL;
251 } 252 }