]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Also drop vm.ref along error paths for vma construction
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jul 2020 21:10:15 +0000 (22:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jul 2020 22:29:42 +0000 (23:29 +0100)
commit8235bf68a278d0b8436a91629a66d82727b488b4
tree75550b9722f768138e7690078490fdc0dfcce994
parent6e920082f8978e5fa22b579267e4db1d78ab9d29
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: Andi Shyti <andi.shyti@intel.com>
Suggested-by: Andi Shyti <andi.shyti@intel.com>
Fixes: dc2b06adfaf3 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Cc: <stable@vger.kernel.org> # v5.5+
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702211015.29604-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c