From: Keith Packard Date: Mon, 3 Nov 2008 07:38:20 +0000 (-0800) Subject: i915: Clean up sarea pointers on leavevt X-Git-Tag: v2.6.28-rc5~87^2~7 X-Git-Url: https://bbs.cooldavid.org/git/?a=commitdiff_plain;h=ad42ca8f4490de06462aee234ea0083cbd8b46aa;p=net-next-2.6.git i915: Clean up sarea pointers on leavevt This corresponds to the setup of the sarea pointers in DMA initialization, though neither is exactly the point at which the sarea is set up or torn down. Signed-off-by: Keith Packard Signed-off-by: Eric Anholt Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 256e22963ae..79944460d70 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -154,6 +154,9 @@ static int i915_dma_cleanup(struct drm_device * dev) if (I915_NEED_GFX_HWS(dev)) i915_free_hws(dev); + dev_priv->sarea = NULL; + dev_priv->sarea_priv = NULL; + return 0; }