summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2004-06-23 04:40:06 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2004-06-23 04:40:06 +0000
commit025a9f8b92ec66b06cdbde2963f0a14dad6ca27e (patch)
tree9e9e306dec19cce51cdc1bd6f1c4a58eb601e182 /sys/arch/sparc64
parent04875eb8c5320c1557ca447d8c665c399562927a (diff)
Fix one-byte overflow in interrupt handling allocator. henning@, miod@ ok
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index f51f2621dd9..39a65dd9ab4 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.67 2004/03/10 23:02:54 tom Exp $ */
+/* $OpenBSD: machdep.c,v 1.68 2004/06/23 04:40:05 aaron Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -1907,7 +1907,7 @@ bus_intr_allocate(bus_space_tag_t t, int (*handler)(void *), void *arg,
if (ih == NULL)
return (NULL);
- memset(ih, 0, sizeof(struct intrhand) + namelen);
+ memset(ih, 0, sizeof(struct intrhand) + namelen - 1);
ih->ih_fun = handler;
ih->ih_arg = arg;