Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / kernel / fork.c
index 43c039d55e95d91dd2dafe3b2cf9f9cab4cc43c0..d624d50f7729c7e2e6a1f73545d8ea4395138e25 100644 (file)
@@ -1005,6 +1005,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
         * triggers too late. This doesn't hurt, the check is only there
         * to stop root fork bombs.
         */
+       retval = -EAGAIN;
        if (nr_threads >= max_threads)
                goto bad_fork_cleanup_count;