summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-11-05 17:06:30 +0100
committerChristian König <christian.koenig@amd.com>2020-11-05 17:09:18 +0100
commit2c16d291236b50f4af83dcdc687ee405c22ad0d3 (patch)
tree3be1a80fa8a66c2f263a4f7ab7cbc65a0ac0b5ac /mm
parente40b0b56ffdc16edce207904a7782da6a1a47162 (diff)
Revert "mm: mmap: fix fput in error path v2"
The kernel test robot is not happy with that. This reverts commit 0227da01f2559626396af5f6c7453360db86c1f6. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/394772/
Diffstat (limited to 'mm')
-rw-r--r--mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 30a4e8412a58..d91ecb00d38c 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1899,8 +1899,8 @@ out:
return addr;
unmap_and_free_vma:
- fput(vma->vm_file);
vma->vm_file = NULL;
+ fput(file);
/* Undo any partial mapping done by a device driver. */
unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);