diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-02-02 04:21:46 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-02-02 04:21:46 +0000 |
commit | 8d0ae06fb16a219aed1f799383eded2ef099f4ff (patch) | |
tree | e8118bc552f047589a5742332fe9da3d6841c765 /sys/dev | |
parent | 996dd67716f8d7f06aeecfc77de986550b4ce178 (diff) |
drm/i915: Fix a memory leak with reused mmap_offset
From Nirmoy Das
0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb in linux-6.1.y/6.1.9
0220e4fe178c3390eb0291cdb34912d66972db8a in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915/gem/i915_gem_mman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c index 3a462571b13..bae805b65bd 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c @@ -1038,7 +1038,7 @@ insert: GEM_BUG_ON(lookup_mmo(obj, mmap_type) != mmo); out: if (file) - drm_vma_node_allow(&mmo->vma_node, file); + drm_vma_node_allow_once(&mmo->vma_node, file); return mmo; err: |