patch-2.3.4 linux/kernel/fork.c

Next file: linux/kernel/signal.c
Previous file: linux/include/net/tcp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.3/linux/kernel/fork.c linux/kernel/fork.c
@@ -390,7 +390,10 @@
 	return 0;
 
 free_mm:
-	mm->pgd = NULL;
+	tsk->mm = NULL;
+	release_segments(mm);
+	kmem_cache_free(mm_cachep, mm);
+	return retval;
 free_pt:
 	tsk->mm = NULL;
 	mmput(mm);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)