]> git.hungrycats.org Git - linux/commit
[PATCH] Handle init_new_context failures
authorAndrew Morton <akpm@osdl.org>
Sun, 21 Sep 2003 08:42:31 +0000 (01:42 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 21 Sep 2003 08:42:31 +0000 (01:42 -0700)
commit1cfc080ae153e2dccf12b965c6e2da8cc996f18f
tree13e72ed5eda0993f9afa2748d9fc9fdb8fbe9136
parent81a706378eae4b9b97b8f28792c08f1f2397ee47
[PATCH] Handle init_new_context failures

From: Anton Blanchard <anton@samba.org>

If init_new_context fails we definitely do not want to call mmput, because
that will call destroy_context against an uninitialised context.  Instead
we should back out what we did in init_mm.  Fixes some weird failures on
ppc64 when running a fork bomb.
kernel/fork.c