X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Foom_kill.c;h=2f3916986abf7054bc00e4c2fc8ed2ed688d199b;hb=c4b7e8754e3198eb5392568e523da6440143c2cd;hp=b278b8d60eee4ac13bba50222c478901cff39a60;hpb=85f4544fbf02f60993c76f5b92517a87f220472d;p=pandora-kernel.git 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) * Don't kill the process if any threads are set to OOM_DISABLE */ do_each_thread(g, q) { - if (q->mm == mm && p->oomkilladj == OOM_DISABLE) + if (q->mm == mm && q->oomkilladj == OOM_DISABLE) return 1; } while_each_thread(g, q);