projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad696d
)
procfs: fix /proc/<pid>/stat stack pointer for kernel threads
author
Stefani Seibold
<
[email protected]
>
Tue, 17 Nov 2009 22:06:23 +0000
(14:06 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 18 Nov 2009 01:40:33 +0000
(17:40 -0800)
Fix a small issue for the stack pointer in /proc/<pid>/stat. In case of a
kernel thread the value of the printed stack pointer should be 0.
Signed-off-by: Stefani Seibold <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/array.c
patch
|
blob
|
history
diff --git
a/fs/proc/array.c
b/fs/proc/array.c
index 07f77a7945c320e7b9ac133e523f83b9824691e2..822c2d5065189906cd6a63bedd27875290964e04 100644
(file)
--- a/
fs/proc/array.c
+++ b/
fs/proc/array.c
@@
-571,7
+571,7
@@
static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
rsslim,
mm ? mm->start_code : 0,
mm ? mm->end_code : 0,
- (permitted) ? task->stack_start : 0,
+ (permitted
&& mm
) ? task->stack_start : 0,
esp,
eip,
/* The signal information here is obsolete.