summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 69071a1..feef8ef 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -66,7 +66,7 @@
#include <vm/pmap.h>
#include <vm/vm_map.h>
#include <vm/vm_extern.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <sys/vmmeter.h>
#include <sys/user.h>
@@ -325,7 +325,7 @@ fork1(td, flags, procp)
}
/* Allocate new proc. */
- newproc = zalloc(proc_zone);
+ newproc = uma_zalloc(proc_zone, M_WAITOK);
/*
* Setup linkage for kernel based threading
OpenPOWER on IntegriCloud