patch-2.1.131 linux/kernel/fork.c

Next file: linux/mm/filemap.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.130/linux/kernel/fork.c linux/kernel/fork.c
@@ -137,7 +137,7 @@
 {
 	struct task_struct **tslot = NULL;
 
-	if (!current->uid || (nr_tasks < NR_TASKS - MIN_TASKS_LEFT_FOR_ROOT))
+	if ((nr_tasks < NR_TASKS - MIN_TASKS_LEFT_FOR_ROOT) || !current->uid)
 		tslot = get_free_taskslot();
 	return tslot;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov