mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 05:30:13 +01:00
GEM: Clear obj_priv->agp_mem when we free it.
Still managing to get something wrong with this, oopsing down in agp.
This commit is contained in:
parent
f0ae335cd7
commit
f56f2acb5a
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue