X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=fs%2Fproc%2Fbase.c;h=a43c70a4783a31c5c30c009b3620dbd30360e711;hp=1fc1dca608ed7c2900f38d3cf409e20379a7eb9b;hb=3a196fbe2650a4465d49f6e84d9360eab60e3bcb;hpb=58f75a56e37352b7dea174ee75f2ca52218370a7 diff --git a/fs/proc/base.c b/fs/proc/base.c index 1fc1dca608ed..a43c70a4783a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -886,8 +886,8 @@ loff_t mem_lseek(struct file *file, loff_t offset, int orig) static int mem_release(struct inode *inode, struct file *file) { struct mm_struct *mm = file->private_data; - - mmput(mm); + if (mm) + mmput(mm); return 0; }