diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 1e6456bb3405..3872f43847ef 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -1,4 +1,4 @@ -/* $NetBSD: at_control.c,v 1.8 2003/06/02 10:33:25 is Exp $ */ +/* $NetBSD: at_control.c,v 1.9 2004/04/18 18:55:57 matt Exp $ */ /* * Copyright (c) 1990,1994 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.8 2003/06/02 10:33:25 is Exp $"); +__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.9 2004/04/18 18:55:57 matt Exp $"); #include #include @@ -167,12 +167,11 @@ at_control(cmd, data, ifp, p) if (aa == (struct at_ifaddr *) 0) { aa = (struct at_ifaddr *) malloc(sizeof(struct at_ifaddr), M_IFADDR, - M_WAITOK); + M_WAITOK|M_ZERO); if (aa == NULL) return (ENOBUFS); - bzero(aa, sizeof *aa); callout_init(&aa->aa_probe_ch); if ((aa0 = at_ifaddr.tqh_first) != NULL) { diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c index af223b037897..c3e78026c5b5 100644 --- a/sys/netatalk/ddp_usrreq.c +++ b/sys/netatalk/ddp_usrreq.c @@ -1,4 +1,4 @@ -/* $NetBSD: ddp_usrreq.c,v 1.11 2003/06/29 22:31:54 fvdl Exp $ */ +/* $NetBSD: ddp_usrreq.c,v 1.12 2004/04/18 18:55:57 matt Exp $ */ /* * Copyright (c) 1990,1991 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.11 2003/06/29 22:31:54 fvdl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.12 2004/04/18 18:55:57 matt Exp $"); #include "opt_mbuftrace.h" @@ -440,10 +440,9 @@ at_pcballoc(so) { struct ddpcb *ddp; - MALLOC(ddp, struct ddpcb *, sizeof(*ddp), M_PCB, M_WAIT); + MALLOC(ddp, struct ddpcb *, sizeof(*ddp), M_PCB, M_WAITOK|M_ZERO); if (!ddp) panic("at_pcballoc"); - bzero((caddr_t) ddp, sizeof *ddp); ddp->ddp_lsat.sat_port = ATADDR_ANYPORT; ddp->ddp_next = ddpcb;