drm/i915: Don't leak in i915_gem_shmem_pread_slow()
authorJesper Juhl <jj@chaosbits.net>
Sun, 12 Jun 2011 20:53:44 +0000 (20:53 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 14 Jun 2011 01:00:54 +0000 (11:00 +1000)
commitb65552f06ca866f587a0a50d1f4dbdd3a00ec532
tree081841bdd06757d84e3990a02b24777c11431348
parenta27bb4b209dd6c327fa4e7185f2487f9508a58db
drm/i915: Don't leak in i915_gem_shmem_pread_slow()

It seems to me that we are leaking 'user_pages' in
drivers/gpu/drm/i915/i915_gem.c::i915_gem_shmem_pread_slow() if
read_cache_page_gfp() fails.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c