 kmod.c |    4 ++++
 1 files changed, 4 insertions(+)
diff -ruNp 811-kmod.patch-old/kernel/kmod.c 811-kmod.patch-new/kernel/kmod.c
--- 811-kmod.patch-old/kernel/kmod.c	2005-07-18 06:37:08.000000000 +1000
+++ 811-kmod.patch-new/kernel/kmod.c	2005-07-20 08:52:31.000000000 +1000
@@ -36,6 +36,7 @@
 #include <linux/mount.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/suspend.h>
 #include <asm/uaccess.h>
 
 extern int max_threads;
@@ -249,6 +250,9 @@ int call_usermodehelper_keys(char *path,
 	if (!khelper_wq)
 		return -EBUSY;
 
+	if (test_suspend_state(SUSPEND_FREEZER_ON))
+		return -EBUSY;
+
 	if (path[0] == '\0')
 		return 0;
 

