]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't leak lmem mapping in vma_evict
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 10 Jun 2022 12:12:05 +0000 (15:12 +0300)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 22 Jun 2022 10:17:05 +0000 (11:17 +0100)
commit1366421450e0fc8bec77b84f54f077215c79c9f4
treebbe2632c60a165dec7c23758c618644f9d3422de
parente7cc62229d886f331c1af7c2206ba9026eeaa691
drm/i915: don't leak lmem mapping in vma_evict

Don't leak lmem mapping in vma_evict, move __i915_vma_iounmap outside
i915_vma_is_map_and_fenceable.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220610121205.29645-3-juhapekka.heikkila@gmail.com
drivers/gpu/drm/i915/i915_vma.c