[PATCH] proc: Use pid_task instead of open coding it

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Eric W. Biederman 2006-10-02 02:18:51 -07:00 committed by Linus Torvalds
parent 72d9dcfc7a
commit 7fbaac005c
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st
/*
* grab the reference to task.
*/
ei->pid = get_pid(task->pids[PIDTYPE_PID].pid);
ei->pid = get_pid(task_pid(task));
if (!ei->pid)
goto out_unlock;