diff options
Diffstat (limited to 'mm')
-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 a7cb4c43fd11..e3778f1215c0 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -326,7 +326,7 @@ static int oom_kill_task(struct task_struct *p) | |||
326 | * to memory reserves though, otherwise we might deplete all memory. | 326 | * to memory reserves though, otherwise we might deplete all memory. |
327 | */ | 327 | */ |
328 | do_each_thread(g, q) { | 328 | do_each_thread(g, q) { |
329 | if (q->mm == mm && q->tgid != p->tgid) | 329 | if (q->mm == mm && !same_thread_group(q, p)) |
330 | force_sig(SIGKILL, q); | 330 | force_sig(SIGKILL, q); |
331 | } while_each_thread(g, q); | 331 | } while_each_thread(g, q); |
332 | 332 | ||