projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ae335
)
GEM: Clear obj_priv->agp_mem when we free it.
author
Eric Anholt
<eric@anholt.net>
Fri, 9 May 2008 22:07:49 +0000
(15:07 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 9 May 2008 22:07:49 +0000
(15:07 -0700)
Still managing to get something wrong with this, oopsing down in agp.
linux-core/i915_gem.c
patch
|
blob
|
history
diff --git
a/linux-core/i915_gem.c
b/linux-core/i915_gem.c
index
be30d6b
..
caead91
100644
(file)
--- 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);