Commit f8bcb756 authored by Stefani Seibold's avatar Stefani Seibold Committed by james toy

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: default avatarStefani Seibold <stefani@seibold.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 2b1e0a0a
...@@ -582,7 +582,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, ...@@ -582,7 +582,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
rsslim, rsslim,
mm ? mm->start_code : 0, mm ? mm->start_code : 0,
mm ? mm->end_code : 0, mm ? mm->end_code : 0,
(permitted) ? task->stack_start : 0, (permitted && mm) ? task->stack_start : 0,
esp, esp,
eip, eip,
/* The signal information here is obsolete. /* The signal information here is obsolete.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment