X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fppc%2Fkernel%2Ftraps.c;h=aafc8e8893d1ebc0ac969b097f77d9f976d616ee;hb=8a84fc15ae5cafcc366dd85cf8e1ab2040679abc;hp=6d0a1838d94cc4badc79fd46552ef6f83be106cc;hpb=d65177c1ae7f085723154105c5dc8d9e16ae8265;p=pandora-kernel.git diff --git a/arch/ppc/kernel/traps.c b/arch/ppc/kernel/traps.c index 6d0a1838d94c..aafc8e8893d1 100644 --- a/arch/ppc/kernel/traps.c +++ b/arch/ppc/kernel/traps.c @@ -1,6 +1,4 @@ /* - * arch/ppc/kernel/traps.c - * * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * This program is free software; you can redistribute it and/or @@ -27,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -122,7 +119,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(¤t->sighand->siglock);