summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-05-09 15:07:49 -0700
committerEric Anholt <eric@anholt.net>2008-05-09 15:07:49 -0700
commitf56f2acb5a3f34ad6916ff315d3d2058bd4b8f9c (patch)
treeb89457f4453bd7c42b7483072c3fd7f76395ef1b
parentf0ae335cd70077043f2f7af39d7edcc529367c61 (diff)
GEM: Clear obj_priv->agp_mem when we free it.
Still managing to get something wrong with this, oopsing down in agp.
-rw-r--r--linux-core/i915_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index be30d6bf..caead91f 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -211,6 +211,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
if (obj_priv->agp_mem != NULL) {
drm_unbind_agp(obj_priv->agp_mem);
drm_free_agp(obj_priv->agp_mem, obj->size / PAGE_SIZE);
+ obj_priv->agp_mem = NULL;
}
i915_gem_object_free_page_list(obj);