diff options
Diffstat (limited to 'mm/oom_kill.c')
-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 31bd0c344fa7..0a4ca8a0234b 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -360,7 +360,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints, | |||
360 | * the process of exiting and releasing its resources. | 360 | * the process of exiting and releasing its resources. |
361 | * Otherwise we could get an easy OOM deadlock. | 361 | * Otherwise we could get an easy OOM deadlock. |
362 | */ | 362 | */ |
363 | if ((p->flags & PF_EXITING) && p->mm) { | 363 | if (thread_group_empty(p) && (p->flags & PF_EXITING) && p->mm) { |
364 | if (p != current) | 364 | if (p != current) |
365 | return ERR_PTR(-1UL); | 365 | return ERR_PTR(-1UL); |
366 | 366 | ||