forked from Minki/linux
[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:
parent
72d9dcfc7a
commit
7fbaac005c
@ -958,7 +958,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st
|
|||||||
/*
|
/*
|
||||||
* grab the reference to task.
|
* grab the reference to task.
|
||||||
*/
|
*/
|
||||||
ei->pid = get_pid(task->pids[PIDTYPE_PID].pid);
|
ei->pid = get_pid(task_pid(task));
|
||||||
if (!ei->pid)
|
if (!ei->pid)
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user