[Intel-gfx] [PATCH] [drm/i915] Clean up sarea pointers on leavevt

Keith Packard keithp at keithp.com
Mon Nov 3 08:38:20 CET 2008


Just NULL out the sarea pointers when the X server has destroyed it. I think
this is the right place to do that.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 drivers/gpu/drm/i915/i915_dma.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index e5f0f77..dde92c7 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;
 }
 
-- 
1.5.6.5




More information about the Intel-gfx mailing list