diff options
Diffstat (limited to 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index d4b0c10872de..dee2ff89fd58 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -1282,10 +1282,8 @@ unsigned long do_mmap_pgoff(struct file *file, | |||
1282 | vma->vm_pgoff = pgoff; | 1282 | vma->vm_pgoff = pgoff; |
1283 | 1283 | ||
1284 | if (file) { | 1284 | if (file) { |
1285 | region->vm_file = file; | 1285 | region->vm_file = get_file(file); |
1286 | get_file(file); | 1286 | vma->vm_file = get_file(file); |
1287 | vma->vm_file = file; | ||
1288 | get_file(file); | ||
1289 | if (vm_flags & VM_EXECUTABLE) { | 1287 | if (vm_flags & VM_EXECUTABLE) { |
1290 | added_exe_file_vma(current->mm); | 1288 | added_exe_file_vma(current->mm); |
1291 | vma->vm_mm = current->mm; | 1289 | vma->vm_mm = current->mm; |