]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/selftests: Do not leak vm_area_struct on early return
authorKrzysztof Karas <krzysztof.karas@intel.com>
Wed, 30 Jul 2025 07:40:18 +0000 (07:40 +0000)
committerAndi Shyti <andi.shyti@kernel.org>
Sat, 9 Aug 2025 00:03:58 +0000 (23:03 -0100)
commitf768ebbba9110846c9f986a96109d70154d60b5d
tree511550e77255eb1463ae00f46d3425b6a78e9664
parentc4d0f59ded1efbf0004dfdfffb9050caba234993
drm/i915/selftests: Do not leak vm_area_struct on early return

This structure may be leaked on early failure paths, so include
vm_munmap() call in them to avoid that.

Suggested-by: Chris Wilson <chris.p.wilson@linux.intel.com>
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://lore.kernel.org/r/d8277e3af09c388fa5dfbf5c9bb3985ae0b191a2.1753859971.git.krzysztof.karas@intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c