summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-12 18:10:07 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-12 18:10:07 +0000
commitb708509aedc6e50723e1d8a500ccbbc9c6fa6db6 (patch)
treec17bc81110de4725079a1059cdcbe9dc69b79ff4
parent51c11077964c2df7e3d3ea02993df394cb24d614 (diff)
use PR_ZERO instead of a bzero() right after the pool_get();
ok blambert@
-rw-r--r--sys/kern/kern_descrip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index dad0a2f2d2c..772d0006ed9 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.78 2008/05/06 20:57:19 thib Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.79 2008/06/12 18:10:06 thib Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -837,8 +837,7 @@ fdinit(struct proc *p)
struct filedesc0 *newfdp;
extern int cmask;
- newfdp = pool_get(&fdesc_pool, PR_WAITOK);
- bzero(newfdp, sizeof(struct filedesc0));
+ newfdp = pool_get(&fdesc_pool, PR_WAITOK|PR_ZERO);
if (p != NULL) {
struct filedesc *fdp = p->p_fd;