summaryrefslogtreecommitdiff
blob: 10079e179d577d66d2d8c35d6872b524a7f3cb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Index: vserver-sources-2.1.1_2.6.16/kernel/fork.c
===================================================================
--- vserver-sources-2.1.1_2.6.16.orig/kernel/fork.c
+++ vserver-sources-2.1.1_2.6.16/kernel/fork.c
@@ -1383,6 +1383,7 @@ long do_fork(unsigned long clone_flags,
 	if ((clone_flags & CLONE_KTHREAD) && !vx_check(0, VX_ADMIN)) {
 		vxwprintk(1, "xid=%d tried to spawn a kernel thread.",
 			vx_current_xid());
+		free_pidmap(pid);
 		return -EPERM;
 	}