Skip to content

Commit

Permalink
drm/i915: fix oops on agp=off
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie committed Mar 29, 2008
1 parent 0c76be3 commit 144a75f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/char/drm/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 144a75f

Please sign in to comment.