From: Oleg Nesterov Date: Mon, 30 Sep 2013 20:45:27 +0000 (-0700) Subject: pidns: fix free_pid() to handle the first fork failure X-Git-Tag: v3.12-rc4~35^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=314a8ad0f18ac37887896b288939acd8cb17e208;p=pandora-kernel.git pidns: fix free_pid() to handle the first fork failure "case 0" in free_pid() assumes that disable_pid_allocation() should clear PIDNS_HASH_ADDING before the last pid goes away. However this doesn't happen if the first fork() fails to create the child reaper which should call disable_pid_allocation(). Signed-off-by: Oleg Nesterov Reviewed-by: "Eric W. Biederman" Cc: "Serge E. Hallyn" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed