summaryrefslogtreecommitdiff
blob: ddc9610f67f8be67dc099f6e09b874057c124dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -Nar -U 4 linux-2.4.25/kernel/fork.c linux-2.4.25-new/kernel/fork.c
--- linux-2.4.25/kernel/fork.c	2004-02-18 05:36:32.000000000 -0800
+++ linux-2.4.25-new/kernel/fork.c	2004-04-07 17:43:29.000000000 -0700
@@ -825,8 +825,10 @@
 bad_fork_cleanup_namespace:
 	exit_namespace(p);
 bad_fork_cleanup_mm:
 	exit_mm(p);
+	if (p->active_mm)
+		mmdrop(p->active_mm);
 bad_fork_cleanup_sighand:
 	exit_sighand(p);
 bad_fork_cleanup_fs:
 	exit_fs(p); /* blocking */