]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unwind vma->pages allocation upon failure
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 12:26:53 +0000 (12:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 13:09:19 +0000 (13:09 +0000)
commit388c2822e0d1eac4fb5d6b10635bed8c109be25f
tree4948bd034d9a8bcbc7d2ba4e043f1d9b87425c5e
parent8a8752ab6e47eb248d1c3347a904525ea077b143
drm/i915: Unwind vma->pages allocation upon failure

If we fail to allocate the ppgtt range after allocating the pages for
the vma, we should unwind the local allocation before reporting back the
failure.

Fixes: d34778320b03 ("drm/i915: Move allocate_va_range to GTT")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170227122654.27651-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c