Skip to content
Commit 03fca66b authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Also drop vm.ref along error paths for vma construction



Not only do we need to release the vm.ref we acquired for the vma on the
duplicate insert branch, but also for the normal error paths, so roll
them all into one.

Reported-by: default avatarAndi Shyti <andi.shyti@intel.com>
Suggested-by: default avatarAndi Shyti <andi.shyti@intel.com>
Fixes: 2850748e

 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Cc: <stable@vger.kernel.org> # v5.5+
Reviewed-by: default avatarAndi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702211015.29604-1-chris@chris-wilson.co.uk
parent a85f2228
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment