aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 96ee899d6502..989e3078d7af 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -350,6 +350,8 @@ static int lstats_open(struct inode *inode, struct file *file)
350 struct seq_file *m; 350 struct seq_file *m;
351 struct task_struct *task = get_proc_task(inode); 351 struct task_struct *task = get_proc_task(inode);
352 352
353 if (!task)
354 return -ENOENT;
353 ret = single_open(file, lstats_show_proc, NULL); 355 ret = single_open(file, lstats_show_proc, NULL);
354 if (!ret) { 356 if (!ret) {
355 m = file->private_data; 357 m = file->private_data;