|
@@ -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
|
|
* generate the same exception over and over again and we get
|
|
* nowhere. Better to kill it and let the kernel panic.
|
|
* nowhere. Better to kill it and let the kernel panic.
|
|
*/
|
|
*/
|
|
- if (current->pid == 1) {
|
|
|
|
|
|
+ if (is_init(current)) {
|
|
__sighandler_t handler;
|
|
__sighandler_t handler;
|
|
|
|
|
|
spin_lock_irq(¤t->sighand->siglock);
|
|
spin_lock_irq(¤t->sighand->siglock);
|