aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 564540662192..365019599df8 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -948,7 +948,8 @@ unsigned long do_mmap_pgoff(struct file *file,
948 up_write(&nommu_vma_sem); 948 up_write(&nommu_vma_sem);
949 kfree(vml); 949 kfree(vml);
950 if (vma) { 950 if (vma) {
951 fput(vma->vm_file); 951 if (vma->vm_file)
952 fput(vma->vm_file);
952 kfree(vma); 953 kfree(vma);
953 } 954 }
954 return ret; 955 return ret;