Messages in this thread Patch in this message | | | Date | Tue, 19 Dec 2006 17:35:49 +0900 | From | Akinobu Mita <> | Subject | [PATCH] powerpc: use is_init() |
| |
Use is_init() rather than hard coded pid comparison.
Cc: Paul Mackerras <paulus@samba.org> Cc: Anton Blanchard <anton@samba.org> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
--- arch/powerpc/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6-mm/arch/powerpc/kernel/traps.c =================================================================== --- 2.6-mm.orig/arch/powerpc/kernel/traps.c +++ 2.6-mm/arch/powerpc/kernel/traps.c @@ -174,7 +174,7 @@ void _exception(int signr, struct pt_reg * 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(¤t->sighand->siglock); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |