summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-04-10 21:08:33 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-04-10 21:08:33 +0000
commit882d743c7308355116615280a25be307a6f44eaa (patch)
tree93614e9c033f0a7e2fbff51c3a07217404e4afcd /sys/net
parent6f359135dd5a3b471beeaa490534f2e8f3d9e3fe (diff)
downloadFreeBSD-src-882d743c7308355116615280a25be307a6f44eaa.zip
FreeBSD-src-882d743c7308355116615280a25be307a6f44eaa.tar.gz
Swap a bzero for an M_ZERO. Borris approved this ages ago, but
the hard drive with the patch on it went south before I committed it. Approved by: bp
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ef.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index 5caf365..220dfac 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -521,12 +521,11 @@ ef_load(void)
if (ifp->if_type != IFT_ETHER) continue;
EFDEBUG("Found interface %s%d\n", ifp->if_name, ifp->if_unit);
efl = (struct ef_link*)malloc(sizeof(struct ef_link),
- M_IFADDR, M_WAITOK);
+ M_IFADDR, M_WAITOK | M_ZERO);
if (efl == NULL) {
error = ENOMEM;
break;
}
- bzero(efl, sizeof(*efl));
efl->el_ifp = ifp;
#ifdef ETHER_II
OpenPOWER on IntegriCloud