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
This commit is contained in:
David Malone 2002-04-10 21:08:33 +00:00
parent 7d358b9a2a
commit 4a771f59c2

View File

@ -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