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 b278b8d60eee..2f3916986abf 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -320,7 +320,7 @@ static int oom_kill_task(struct task_struct *p) | |||
320 | * Don't kill the process if any threads are set to OOM_DISABLE | 320 | * Don't kill the process if any threads are set to OOM_DISABLE |
321 | */ | 321 | */ |
322 | do_each_thread(g, q) { | 322 | do_each_thread(g, q) { |
323 | if (q->mm == mm && p->oomkilladj == OOM_DISABLE) | 323 | if (q->mm == mm && q->oomkilladj == OOM_DISABLE) |
324 | return 1; | 324 | return 1; |
325 | } while_each_thread(g, q); | 325 | } while_each_thread(g, q); |
326 | 326 | ||