diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-04-10 21:08:33 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-04-10 21:08:33 +0000 |
commit | 882d743c7308355116615280a25be307a6f44eaa (patch) | |
tree | 93614e9c033f0a7e2fbff51c3a07217404e4afcd /sys/net/if_ef.c | |
parent | 6f359135dd5a3b471beeaa490534f2e8f3d9e3fe (diff) | |
download | FreeBSD-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/if_ef.c')
-rw-r--r-- | sys/net/if_ef.c | 3 |
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 |