aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 7f2683a10ac4..019a2843bf95 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -55,7 +55,6 @@
55#include <asm/unistd.h> 55#include <asm/unistd.h>
56#include <asm/pgtable.h> 56#include <asm/pgtable.h>
57#include <asm/mmu_context.h> 57#include <asm/mmu_context.h>
58#include "cred-internals.h"
59 58
60static void exit_mm(struct task_struct * tsk); 59static void exit_mm(struct task_struct * tsk);
61 60
@@ -1003,8 +1002,10 @@ NORET_TYPE void do_exit(long code)
1003 1002
1004 exit_notify(tsk, group_dead); 1003 exit_notify(tsk, group_dead);
1005#ifdef CONFIG_NUMA 1004#ifdef CONFIG_NUMA
1005 task_lock(tsk);
1006 mpol_put(tsk->mempolicy); 1006 mpol_put(tsk->mempolicy);
1007 tsk->mempolicy = NULL; 1007 tsk->mempolicy = NULL;
1008 task_unlock(tsk);
1008#endif 1009#endif
1009#ifdef CONFIG_FUTEX 1010#ifdef CONFIG_FUTEX
1010 if (unlikely(current->pi_state_cache)) 1011 if (unlikely(current->pi_state_cache))