Merge commit 'v2.6.29-rc4' into core/percpu
[pandora-kernel.git] / kernel / fork.c
index 99309df..c078438 100644 (file)
@@ -1010,6 +1010,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;