aboutsummaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index f3dd79c1c367..202f186a753a 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -226,8 +226,8 @@ static struct task_struct *select_bad_process(unsigned long *ppoints)
226 releasing = test_tsk_thread_flag(p, TIF_MEMDIE) || 226 releasing = test_tsk_thread_flag(p, TIF_MEMDIE) ||
227 p->flags & PF_EXITING; 227 p->flags & PF_EXITING;
228 if (releasing) { 228 if (releasing) {
229 /* PF_DEAD tasks have already released their mm */ 229 /* TASK_DEAD tasks have already released their mm */
230 if (p->flags & PF_DEAD) 230 if (p->state == EXIT_DEAD)
231 continue; 231 continue;
232 if (p->flags & PF_EXITING && p == current) { 232 if (p->flags & PF_EXITING && p == current) {
233 chosen = p; 233 chosen = p;