summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ef.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerdwmalone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commitdd75d1d73b4f3034c1d9f621a49fff58b1d71eb1 (patch)
tree197ae73617ae75afe008897f6906b84835589ea2 /sys/net/if_ef.c
parented5dbfbd3cd619638a7baac288f548aa1398edac (diff)
downloadFreeBSD-src-dd75d1d73b4f3034c1d9f621a49fff58b1d71eb1.zip
FreeBSD-src-dd75d1d73b4f3034c1d9f621a49fff58b1d71eb1.tar.gz
Convert more malloc+bzero to malloc+M_ZERO.
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
Diffstat (limited to 'sys/net/if_ef.c')
-rw-r--r--sys/net/if_ef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index f8e38ca..4554a29 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -492,10 +492,10 @@ ef_clone(struct ef_link *efl, int ft)
char cbuf[IFNAMSIZ], *ifname;
int ifnlen;
- efp = (struct efnet*)malloc(sizeof(struct efnet), M_IFADDR, M_WAITOK);
+ efp = (struct efnet*)malloc(sizeof(struct efnet), M_IFADDR,
+ M_WAITOK | M_ZERO);
if (efp == NULL)
return ENOMEM;
- bzero(efp, sizeof(*efp));
efp->ef_ifp = ifp;
eifp = &efp->ef_ac.ac_if;
ifnlen = 1 + snprintf(cbuf, sizeof(cbuf), "%s%df", ifp->if_name,
OpenPOWER on IntegriCloud