Commit 9ebd4eba761b624a6a6c9189335adeddcb1fa0e0

Authored by Stefani Seibold
Committed by Linus Torvalds
1 parent 6ad696d2cf

procfs: fix /proc/<pid>/stat stack pointer for kernel threads

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 <stefani@seibold.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -571,7 +571,7 @@
571 571 rsslim,
572 572 mm ? mm->start_code : 0,
573 573 mm ? mm->end_code : 0,
574   - (permitted) ? task->stack_start : 0,
  574 + (permitted && mm) ? task->stack_start : 0,
575 575 esp,
576 576 eip,
577 577 /* The signal information here is obsolete.