X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mm%2Foom_kill.c;h=2f3916986abf7054bc00e4c2fc8ed2ed688d199b;hb=d1cabd63262707ad5d6bb730f25b7a2852734595;hp=b278b8d60eee4ac13bba50222c478901cff39a60;hpb=f87c8e80545fd277f69521ef859c3e71c6af5656;p=powerpc.git diff --git a/mm/oom_kill.c b/mm/oom_kill.c index b278b8d60e..2f3916986a 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);