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 */