diff options
-rw-r--r-- | mm/oom_kill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 7c0dc414dba8..0a6e466155d2 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -287,7 +287,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints, | |||
287 | * the process of exiting and releasing its resources. | 287 | * the process of exiting and releasing its resources. |
288 | * Otherwise we could get an easy OOM deadlock. | 288 | * Otherwise we could get an easy OOM deadlock. |
289 | */ | 289 | */ |
290 | if (p->flags & PF_EXITING) { | 290 | if ((p->flags & PF_EXITING) && p->mm) { |
291 | if (p != current) | 291 | if (p != current) |
292 | return ERR_PTR(-1UL); | 292 | return ERR_PTR(-1UL); |
293 | 293 | ||