diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-11 17:47:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-11 17:47:01 +0000 |
commit | b37d7f96fb3abe514655717c4b8cf821c6eae0ca (patch) | |
tree | c132501d52744056a4897d2e74495f1919d5cd8a /sys/arch/sparc/dev/xd.c | |
parent | e36211dd21709c1c1efda83c64a6cf275a82a673 (diff) |
Pass a few more M_ZERO to malloc() or its wrappers, when useful; ok krw@
Diffstat (limited to 'sys/arch/sparc/dev/xd.c')
-rw-r--r-- | sys/arch/sparc/dev/xd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index c61b96affc5..c284d4e8390 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.52 2010/09/22 06:40:25 krw Exp $ */ +/* $OpenBSD: xd.c,v 1.53 2010/11/11 17:46:58 miod Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -413,9 +413,8 @@ xdcattach(parent, self, aux) xdc->dvmaiopb = (struct xd_iopb *) dvma_malloc(XDC_MAXIOPB * sizeof(struct xd_iopb), &xdc->iopbase, - M_NOWAIT); + M_NOWAIT | M_ZERO); xdc->iopbase = xdc->dvmaiopb; /* XXX TMP HACK */ - bzero(xdc->iopbase, XDC_MAXIOPB * sizeof(struct xd_iopb)); /* Setup device view of DVMA address */ xdc->dvmaiopb = (struct xd_iopb *) ((u_long) xdc->iopbase - DVMA_BASE); |