diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-08-28 01:51:53 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-08-28 01:51:53 +0000 |
commit | a49b51e64fd2caf1bf2d0040d9edf7651b255352 (patch) | |
tree | 16404dd149182ee5871ae5558617de16209d5c1e /sys | |
parent | 0cd2978b20801a8b5e97093670a4b17775b00e87 (diff) |
set sarea_priv to NULL to prevent possible access on next open/close.
From Robert Noland via drm git.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/i915_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_dma.c b/sys/dev/pci/drm/i915_dma.c index 92edca50434..7d50c29103a 100644 --- a/sys/dev/pci/drm/i915_dma.c +++ b/sys/dev/pci/drm/i915_dma.c @@ -984,6 +984,8 @@ void i915_driver_lastclose(struct drm_device * dev) if (drm_getsarea(dev) && dev_priv->sarea_priv) i915_do_cleanup_pageflip(dev); + dev_priv->sarea_priv = NULL; + if (dev_priv->agp_heap) i915_mem_takedown(&(dev_priv->agp_heap)); i915_dma_cleanup(dev); |