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; }