projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72d9dcf
)
[PATCH] proc: Use pid_task instead of open coding it
author
Eric W. Biederman
<ebiederm@xmission.com>
Mon, 2 Oct 2006 09:18:51 +0000
(
02:18
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:24 +0000
(07:57 -0700)
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>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index
38a8046
..
04e29f9
100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-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;