summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/sbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/dev/sbus.c')
-rw-r--r--sys/arch/sparc64/dev/sbus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c
index 8a77debba3b..242fa0be227 100644
--- a/sys/arch/sparc64/dev/sbus.c
+++ b/sys/arch/sparc64/dev/sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbus.c,v 1.27 2007/05/29 09:54:13 sobrado Exp $ */
+/* $OpenBSD: sbus.c,v 1.28 2007/09/17 01:33:33 krw Exp $ */
/* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */
/*-
@@ -772,11 +772,10 @@ sbus_alloc_bustag(struct sbus_softc *sc, int indirect)
{
struct sparc_bus_space_tag *sbt;
- sbt = malloc(sizeof(*sbt), M_DEVBUF, M_NOWAIT);
+ sbt = malloc(sizeof(*sbt), M_DEVBUF, M_NOWAIT | M_ZERO);
if (sbt == NULL)
return (NULL);
- bzero(sbt, sizeof *sbt);
snprintf(sbt->name, sizeof(sbt->name), "%s",
sc->sc_dev.dv_xname);
sbt->cookie = sc;