drm/i915: detach/attach get/put pages symmetry
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Jun 2009 20:52:49 +0000 (21:52 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 17 Jun 2009 22:26:24 +0000 (15:26 -0700)
After performing an operation over the page list for a buffer retrieved by
i915_gem_object_get_pages() the pages need to be returned with
i915_gem_object_put_pages(). This was not being observed for the phys
objects which were thus leaking references to their backing pages.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
CC: Dave Airlie <airlied@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>

No differences found