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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index bf58eaf..82e213b 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -475,6 +475,7 @@ do_fork(struct thread *td, int flags, struct proc *p2, struct thread *td2,
bzero(&td2->td_startzero,
__rangeof(struct thread, td_startzero, td_endzero));
+ td2->td_su = NULL;
bcopy(&td->td_startcopy, &td2->td_startcopy,
__rangeof(struct thread, td_startcopy, td_endcopy));
OpenPOWER on IntegriCloud