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:
4323ee3
)
i915: fix oops on agp=off
author
Dave Airlie
<airlied@redhat.com>
Mon, 24 Mar 2008 08:52:26 +0000
(18:52 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 24 Mar 2008 08:52:26 +0000
(18:52 +1000)
Kernel bug 10289.
shared-core/i915_dma.c
patch
|
blob
|
history
diff --git
a/shared-core/i915_dma.c
b/shared-core/i915_dma.c
index
407befc
..
1e493e3
100644
(file)
--- a/
shared-core/i915_dma.c
+++ b/
shared-core/i915_dma.c
@@
-1060,6
+1060,10
@@
void i915_driver_lastclose(struct drm_device * dev)
{
drm_i915_private_t *dev_priv = dev->dev_private;
+ /* agp off can use this to get called before dev_priv */
+ if (!dev_priv)
+ return;
+
#ifdef I915_HAVE_BUFFER
if (dev_priv->val_bufs) {
vfree(dev_priv->val_bufs);