From 7ec9743293aa46dce56521bfc0638ee61d7d5b52 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Tue, 5 Dec 2000 06:44:22 +0000 Subject: [PATCH] Remove call to bzero after MALLOC and instead add M_ZERO to MALLOC. --- sys/compat/linux/linux_mib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c index f7d504788b1d..6d60a8c8f975 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; }