aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/task_mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r--fs/proc/task_mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index abf3208c3f6..0137ec4c136 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -320,7 +320,7 @@ static void *m_start(struct seq_file *m, loff_t *pos)
320 if (last_addr == -1UL) 320 if (last_addr == -1UL)
321 return NULL; 321 return NULL;
322 322
323 priv->task = get_tref_task(priv->tref); 323 priv->task = get_pid_task(priv->pid, PIDTYPE_PID);
324 if (!priv->task) 324 if (!priv->task)
325 return NULL; 325 return NULL;
326 326
@@ -416,7 +416,7 @@ static int do_maps_open(struct inode *inode, struct file *file,
416 int ret = -ENOMEM; 416 int ret = -ENOMEM;
417 priv = kzalloc(sizeof(*priv), GFP_KERNEL); 417 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
418 if (priv) { 418 if (priv) {
419 priv->tref = proc_tref(inode); 419 priv->pid = proc_pid(inode);
420 ret = seq_open(file, ops); 420 ret = seq_open(file, ops);
421 if (!ret) { 421 if (!ret) {
422 struct seq_file *m = file->private_data; 422 struct seq_file *m = file->private_data;