diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2003-10-01 06:01:56 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2003-10-01 06:01:56 +0000 |
commit | 84f225ec5166658ee0e39d84e56a478cb4f96462 (patch) | |
tree | 686e3a0c2a20e320aff1e9314e221884d1fe86ca /sys/arch | |
parent | 1bb20811d7890e1a4fdeb8e6e1a7dcdbf5ba27c2 (diff) |
Fix off-by-one.
OK jason@, henric@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/intr.c | 4 |
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]; |