diff options
author | marcel <marcel@FreeBSD.org> | 2000-12-05 06:44:22 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2000-12-05 06:44:22 +0000 |
commit | 444800469d6f6a4f66d0ec263b88032cf77aba1d (patch) | |
tree | b6ee3c5869720f93fae318727a377573b72cc0f0 /sys/compat | |
parent | dc1f3a0dec4d2760f0258440234f5b6793f25770 (diff) | |
download | FreeBSD-src-444800469d6f6a4f66d0ec263b88032cf77aba1d.zip FreeBSD-src-444800469d6f6a4f66d0ec263b88032cf77aba1d.tar.gz |
Remove call to bzero after MALLOC and instead add M_ZERO
to MALLOC.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_mib.c | 3 |
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; } |