artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a3a98
)
set sarea_priv to NULL to prevent possible access on next open/close.
author
oga
<oga@openbsd.org>
Thu, 28 Aug 2008 01:51:52 +0000
(
01:51
+0000)
committer
oga
<oga@openbsd.org>
Thu, 28 Aug 2008 01:51:52 +0000
(
01:51
+0000)
From Robert Noland via drm git.
sys/dev/pci/drm/i915_dma.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915_dma.c
b/sys/dev/pci/drm/i915_dma.c
index
92edca5
..
7d50c29
100644
(file)
--- 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);