summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/fga.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/fga.c')
-rw-r--r--sys/arch/sparc/dev/fga.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/fga.c b/sys/arch/sparc/dev/fga.c
index 25247aace7e..102a995725a 100644
--- a/sys/arch/sparc/dev/fga.c
+++ b/sys/arch/sparc/dev/fga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fga.c,v 1.16 2010/09/20 06:33:47 matthew Exp $ */
+/* $OpenBSD: fga.c,v 1.17 2010/11/11 17:46:58 miod Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -520,10 +520,9 @@ fga_intr_establish(sc, vec, level, ih, name)
/* setup vector handler */
if (sc->sc_vmevec == NULL) {
sc->sc_vmevec = (struct intrhand **)malloc(256 *
- sizeof(struct intrhand *), M_DEVBUF, M_NOWAIT);
+ sizeof(struct intrhand *), M_DEVBUF, M_NOWAIT | M_ZERO);
if (sc->sc_vmevec == NULL)
panic("fga_addirq");
- bzero(sc->sc_vmevec, 256 * sizeof(struct intrhand *));
}
if (sc->sc_vmevec[vec] == NULL)
sc->sc_vmevec[vec] = ih;