diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 7bb73f9d09db..ab36666c0875 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -59,6 +59,8 @@ | |||
59 | #include <asm/pgtable.h> | 59 | #include <asm/pgtable.h> |
60 | #include <asm/mmu_context.h> | 60 | #include <asm/mmu_context.h> |
61 | 61 | ||
62 | extern void exit_od_table(struct task_struct *t); | ||
63 | |||
62 | static void exit_mm(struct task_struct * tsk); | 64 | static void exit_mm(struct task_struct * tsk); |
63 | 65 | ||
64 | static void __unhash_process(struct task_struct *p, bool group_dead) | 66 | static void __unhash_process(struct task_struct *p, bool group_dead) |
@@ -781,6 +783,8 @@ void do_exit(long code) | |||
781 | tty_audit_exit(); | 783 | tty_audit_exit(); |
782 | audit_free(tsk); | 784 | audit_free(tsk); |
783 | 785 | ||
786 | exit_od_table(tsk); | ||
787 | |||
784 | tsk->exit_code = code; | 788 | tsk->exit_code = code; |
785 | taskstats_exit(tsk, group_dead); | 789 | taskstats_exit(tsk, group_dead); |
786 | 790 | ||