diff options
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 3f2182ccf187..df2eee9c68ce 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -774,6 +774,7 @@ static void exit_notify(struct task_struct *tsk) | |||
774 | * jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2) | 774 | * jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2) |
775 | */ | 775 | */ |
776 | forget_original_parent(tsk); | 776 | forget_original_parent(tsk); |
777 | exit_task_namespaces(tsk); | ||
777 | 778 | ||
778 | write_lock_irq(&tasklist_lock); | 779 | write_lock_irq(&tasklist_lock); |
779 | /* | 780 | /* |
@@ -984,7 +985,6 @@ fastcall NORET_TYPE void do_exit(long code) | |||
984 | module_put(tsk->binfmt->module); | 985 | module_put(tsk->binfmt->module); |
985 | 986 | ||
986 | proc_exit_connector(tsk); | 987 | proc_exit_connector(tsk); |
987 | exit_task_namespaces(tsk); | ||
988 | exit_notify(tsk); | 988 | exit_notify(tsk); |
989 | #ifdef CONFIG_NUMA | 989 | #ifdef CONFIG_NUMA |
990 | mpol_free(tsk->mempolicy); | 990 | mpol_free(tsk->mempolicy); |