2007-10-21 03:16:18

by Al Viro

[permalink] [raw]
Subject: [PATCH] oom_kill bug

Wrong order of arguments

Signed-off-by: Al Viro <[email protected]>
---
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 824cade..91a081a 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -496,7 +496,7 @@ retry:
panic("Out of memory and no killable processes...\n");
}

- if (oom_kill_process(p, points, gfp_mask, order,
+ if (oom_kill_process(p, gfp_mask, order, points,
"Out of memory"))
goto retry;