diff options
Diffstat (limited to 'sys/arch/hppa/dev/astro.c')
-rw-r--r-- | sys/arch/hppa/dev/astro.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/hppa/dev/astro.c b/sys/arch/hppa/dev/astro.c index d87a63a4b0e..13c18a086ee 100644 --- a/sys/arch/hppa/dev/astro.c +++ b/sys/arch/hppa/dev/astro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: astro.c,v 1.7 2007/07/01 12:53:52 kettenis Exp $ */ +/* $OpenBSD: astro.c,v 1.8 2007/10/06 23:50:54 krw Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -589,12 +589,10 @@ iommu_iomap_create(int n) n = 16; ims = malloc(sizeof(*ims) + (n - 1) * sizeof(ims->ims_map.ipm_map[0]), - M_DEVBUF, M_NOWAIT); + M_DEVBUF, M_NOWAIT | M_ZERO); if (ims == NULL) return (NULL); - memset(ims, 0, sizeof *ims); - /* Initialize the map. */ ims->ims_map.ipm_maxpage = n; SPLAY_INIT(&ims->ims_map.ipm_tree); |