Skip to content

Commit

Permalink
[PATCH] proc: Use pid_task instead of open coding it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Oct 2, 2006
1 parent 72d9dcf commit 7fbaac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7fbaac0

Please sign in to comment.