projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3c4dd
)
i915: Clear sarea_priv during lastclose.
author
Robert Noland
<rnoland@2hip.net>
Wed, 20 Aug 2008 21:20:31 +0000
(17:20 -0400)
committer
Robert Noland
<rnoland@2hip.net>
Sun, 24 Aug 2008 19:25:20 +0000
(15:25 -0400)
sarea_priv needs to be NULL before i915_initialized is called to
properly reset it. The stale value produces a panic any time something
opens/closes drm without calling initialize. i.e. version checking
shared-core/i915_dma.c
patch
|
blob
|
history
diff --git
a/shared-core/i915_dma.c
b/shared-core/i915_dma.c
index 84aafaae57077a40f001031cbab956e7f56320ee..77b4181ce57248a13485a1919fe21ff15abb6f4f 100644
(file)
--- a/
shared-core/i915_dma.c
+++ b/
shared-core/i915_dma.c
@@
-1142,6
+1142,8
@@
void i915_driver_lastclose(struct drm_device * dev)
if (drm_getsarea(dev) && dev_priv->sarea_priv)
i915_do_cleanup_pageflip(dev);
+ if (dev_priv->sarea_priv)
+ dev_priv->sarea_priv = NULL;
if (dev_priv->agp_heap)
i915_mem_takedown(&(dev_priv->agp_heap));
#if defined(I915_HAVE_BUFFER)