[Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA
Chris Wilson
chris at chris-wilson.co.uk
Wed Apr 13 15:12:55 UTC 2016
On Wed, Apr 13, 2016 at 03:47:58PM +0100, Chris Wilson wrote:
> + /* We also want to clear any cached iomaps as they wrap vmap */
> + list_for_each_entry_safe(vma, next,
> + &dev_priv->ggtt.base.inactive_list, vm_link)
> + if (vma->iomap && i915_vma_unbind(vma) == 0)
> + freed_pages += vma->node.size >> PAGE_SHIFT;
Use after free. I need to store the page count in a local before calling
unbind.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list