patch-1.3.28 linux/mm/vmalloc.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/mm/swap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/mm/vmalloc.c linux/mm/vmalloc.c
@@ -31,8 +31,11 @@
 {
 	struct task_struct * p;
 
-	for_each_task(p)
+	for_each_task(p) {
+		if (!p->mm)
+			continue;
 		*pgd_offset(p->mm,address) = entry;
+	}
 }
 
 static inline void free_area_pte(pmd_t * pmd, unsigned long address, unsigned long size)

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