diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 8037405e136e..a8c7efc7a681 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/signal.h> | 31 | #include <linux/signal.h> |
32 | #include <linux/cn_proc.h> | 32 | #include <linux/cn_proc.h> |
33 | #include <linux/mutex.h> | 33 | #include <linux/mutex.h> |
34 | #include <linux/futex.h> | ||
35 | #include <linux/compat.h> | ||
34 | 36 | ||
35 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
36 | #include <asm/unistd.h> | 38 | #include <asm/unistd.h> |
@@ -852,6 +854,12 @@ fastcall NORET_TYPE void do_exit(long code) | |||
852 | exit_itimers(tsk->signal); | 854 | exit_itimers(tsk->signal); |
853 | acct_process(code); | 855 | acct_process(code); |
854 | } | 856 | } |
857 | if (unlikely(tsk->robust_list)) | ||
858 | exit_robust_list(tsk); | ||
859 | #ifdef CONFIG_COMPAT | ||
860 | if (unlikely(tsk->compat_robust_list)) | ||
861 | compat_exit_robust_list(tsk); | ||
862 | #endif | ||
855 | exit_mm(tsk); | 863 | exit_mm(tsk); |
856 | 864 | ||
857 | exit_sem(tsk); | 865 | exit_sem(tsk); |