projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c76be3
)
drm/i915: fix oops on agp=off
author
Dave Airlie
<airlied@linux.ie>
Sat, 29 Mar 2008 21:53:58 +0000
(07:53 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Sat, 29 Mar 2008 21:53:58 +0000
(07:53 +1000)
From Kernel BZ 10289 - not sure why anyone would boot an intel with no agp
but it shouldn't crash.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/i915_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/i915_dma.c
b/drivers/char/drm/i915_dma.c
index e9d6663bec73ec5e9a2642d6af29bab81b0b9f40..a043bb12301acd9c1cf087663659c775316dd9f2 100644
(file)
--- a/
drivers/char/drm/i915_dma.c
+++ b/
drivers/char/drm/i915_dma.c
@@
-804,6
+804,9
@@
void i915_driver_lastclose(struct drm_device * dev)
{
drm_i915_private_t *dev_priv = dev->dev_private;
+ if (!dev_priv)
+ return;
+
if (dev_priv->agp_heap)
i915_mem_takedown(&(dev_priv->agp_heap));