patch-1.3.75 linux/mm/swapfile.c

Next file: linux/net/ax25/af_ax25.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.74/linux/mm/swapfile.c linux/mm/swapfile.c
@@ -270,7 +270,7 @@
 	/*
 	 * Go through process' page directory.
 	 */
-	if (!mm)
+	if (!mm || mm == &init_mm)
 		return 0;
 	vma = mm->mmap;
 	while (vma) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this