exit: Add and use make_task_dead.
[platform/kernel/linux-rpi.git] / arch / csky / kernel / traps.c
index 2020af8..b445c5a 100644 (file)
@@ -109,7 +109,7 @@ void die(struct pt_regs *regs, const char *str)
        if (panic_on_oops)
                panic("Fatal exception");
        if (ret != NOTIFY_STOP)
-               do_exit(SIGSEGV);
+               make_dead_task(SIGSEGV);
 }
 
 void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr)