Skip to content

Commit

Permalink
[POWERPC] Use is_init() instead of pid==1
Browse files Browse the repository at this point in the history
Use is_init() rather than hard coded pid comparison.

Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Akinobu Mita authored and Paul Mackerras committed Jan 24, 2007
1 parent ded84bc commit 60bccbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr)
* generate the same exception over and over again and we get
* nowhere. Better to kill it and let the kernel panic.
*/
if (current->pid == 1) {
if (is_init(current)) {
__sighandler_t handler;

spin_lock_irq(&current->sighand->siglock);
Expand Down

0 comments on commit 60bccbe

Please sign in to comment.