summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2000-12-05 06:44:22 +0000
committermarcel <marcel@FreeBSD.org>2000-12-05 06:44:22 +0000
commit444800469d6f6a4f66d0ec263b88032cf77aba1d (patch)
treeb6ee3c5869720f93fae318727a377573b72cc0f0
parentdc1f3a0dec4d2760f0258440234f5b6793f25770 (diff)
downloadFreeBSD-src-444800469d6f6a4f66d0ec263b88032cf77aba1d.zip
FreeBSD-src-444800469d6f6a4f66d0ec263b88032cf77aba1d.tar.gz
Remove call to bzero after MALLOC and instead add M_ZERO
to MALLOC.
-rw-r--r--sys/compat/linux/linux_mib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index f7d5047..6d60a8c 100644
--- a/sys/compat/linux/linux_mib.c
+++ b/sys/compat/linux/linux_mib.c
@@ -123,8 +123,7 @@ get_prison(struct proc *p)
if (pr->pr_linux == NULL) {
MALLOC(lpr, struct linux_prison *, sizeof *lpr,
- M_PRISON, M_WAITOK);
- bzero((caddr_t)lpr, sizeof *lpr);
+ M_PRISON, M_WAITOK|M_ZERO);
pr->pr_linux = lpr;
}
OpenPOWER on IntegriCloud