diff -ruN 501-disable-oom-killer-when-suspending-old/mm/oom_kill.c 501-disable-oom-killer-when-suspending-new/mm/oom_kill.c
--- 501-disable-oom-killer-when-suspending-old/mm/oom_kill.c	2004-11-03 21:53:47.000000000 +1100
+++ 501-disable-oom-killer-when-suspending-new/mm/oom_kill.c	2004-11-04 16:27:40.000000000 +1100
@@ -20,6 +20,7 @@
 #include <linux/swap.h>
 #include <linux/timex.h>
 #include <linux/jiffies.h>
+#include <linux/suspend.h>
 
 /* #define DEBUG */
 
@@ -237,6 +238,9 @@
 	static unsigned long first, last, count, lastkill;
 	unsigned long now, since;
 
+	if (test_suspend_state(SUSPEND_FREEZER_ON))
+		return;
+	
 	spin_lock(&oom_lock);
 	now = jiffies;
 	since = now - last;
