summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2003-10-01 06:01:56 +0000
committerChad Loder <cloder@cvs.openbsd.org>2003-10-01 06:01:56 +0000
commit84f225ec5166658ee0e39d84e56a478cb4f96462 (patch)
tree686e3a0c2a20e320aff1e9314e221884d1fe86ca /sys/arch/sparc64
parent1bb20811d7890e1a4fdeb8e6e1a7dcdbf5ba27c2 (diff)
Fix off-by-one.
OK jason@, henric@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/intr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c
index f59c8e9c500..5c3e2ad1d98 100644
--- a/sys/arch/sparc64/sparc64/intr.c
+++ b/sys/arch/sparc64/sparc64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.17 2003/06/12 01:07:31 deraadt Exp $ */
+/* $OpenBSD: intr.c,v 1.18 2003/10/01 06:01:55 cloder Exp $ */
/* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */
/*
@@ -236,7 +236,7 @@ intr_establish(level, ih)
}
#endif
- if (ih->ih_number <= 0 || ih->ih_number > MAXINTNUM)
+ if (ih->ih_number <= 0 || ih->ih_number >= MAXINTNUM)
panic("intr_establish: bad intr number %x", ih->ih_number);
q = intrlev[ih->ih_number];