From 6640aab6f2aed89470bc44c7450b7573659e651e Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Wed, 22 May 2013 17:47:13 +0300 Subject: [PATCH] drm/i915: release scratch page at module unload Signed-off-by: Imre Deak Acked-by: Mika Kuoppala Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index bd56c5560fa0..3cd2b606aaba 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1790,6 +1790,8 @@ int i915_driver_unload(struct drm_device *dev) destroy_workqueue(dev_priv->wq); pm_qos_remove_request(&dev_priv->pm_qos); + dev_priv->gtt.gtt_remove(dev); + if (dev_priv->slab) kmem_cache_destroy(dev_priv->slab); -- 2.39.5