[Intel-gfx] [PATCH] drm/i915: Do not leak pages when freeing userptr objects
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 26 16:55:51 CEST 2014
On Fri, Sep 26, 2014 at 03:05:22PM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> sg_alloc_table_from_pages() can build us a table with coalesced ranges which
> means we need to iterate over pages and not sg table entries when releasing
> page references.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: "Barbalho, Rafael" <rafael.barbalho at intel.com>
Oh that's fun. I blame Imre for the recent invention of for_each_sg_page()!
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: stable at vger.kernel.org
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list