Skip to content

Commit

Permalink
i915: Clean up sarea pointers on leavevt
Browse files Browse the repository at this point in the history
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 <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Keith Packard authored and Dave Airlie committed Nov 11, 2008
1 parent 881ee98 commit ad42ca8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ad42ca8

Please sign in to comment.