aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 9cde9edf9c4d..c3617ea7830b 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -822,8 +822,8 @@ loff_t mem_lseek(struct file *file, loff_t offset, int orig)
822static int mem_release(struct inode *inode, struct file *file) 822static int mem_release(struct inode *inode, struct file *file)
823{ 823{
824 struct mm_struct *mm = file->private_data; 824 struct mm_struct *mm = file->private_data;
825 825 if (mm)
826 mmput(mm); 826 mmput(mm);
827 return 0; 827 return 0;
828} 828}
829 829