[Intel-gfx] [PATCH 3/3] drm/i915/vma: Remove VMA from exec_list on destroy
Ben Widawsky
benjamin.widawsky at intel.com
Tue Aug 20 08:14:15 CEST 2013
In order to avoid confusion, and corruption as observed (in code review)
by Chris - remove the VMA from the exec_list at destroy.
Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
drivers/gpu/drm/i915/i915_gem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 6d2d7df..9f03f5d 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4160,6 +4160,7 @@ void i915_gem_vma_destroy(struct i915_vma *vma)
return;
WARN_ON(vma->node.allocated);
+ list_del(&vma->exec_list);
list_del(&vma->vma_link);
kfree(vma);
}
--
1.8.3.4
More information about the Intel-gfx
mailing list