]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/ppc/kernel/traps.c
[PATCH] pidspace: is_init()
[mirror_ubuntu-artful-kernel.git] / arch / ppc / kernel / traps.c
index d7a433049b4857b3acf2caa59e6f7c981d1c5f21..aafc8e8893d1ebc0ac969b097f77d9f976d616ee 100644 (file)
@@ -119,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(&current->sighand->siglock);