]> err.no Git - linux-2.6/blobdiff - kernel/kexec.c
pid namespaces: move alloc_pid() lower in copy_process()
[linux-2.6] / kernel / kexec.c
index e9f1b4ea504d920bd514deb8868536fd10de77bb..fbffdb457cce0e6f44cbef31285ec9de3e68f686 100644 (file)
@@ -51,7 +51,7 @@ struct resource crashk_res = {
 
 int kexec_should_crash(struct task_struct *p)
 {
-       if (in_interrupt() || !p->pid || is_init(p) || panic_on_oops)
+       if (in_interrupt() || !p->pid || is_global_init(p) || panic_on_oops)
                return 1;
        return 0;
 }