summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/pci
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-06-18 21:33:43 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-06-18 21:33:43 +0000
commitd31566c1612db946049d7fbc48d3df66c44dc727 (patch)
tree2b9794a09356e1fdfe48d53dbeb306b3ed7b252a /sys/arch/alpha/pci
parent60ef80006584c1170f8009ed0960d8c8723336c8 (diff)
Correct range validation in sio_iointr().
Diffstat (limited to 'sys/arch/alpha/pci')
-rw-r--r--sys/arch/alpha/pci/sio_pic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/pci/sio_pic.c b/sys/arch/alpha/pci/sio_pic.c
index b082b42304d..4b35058438e 100644
--- a/sys/arch/alpha/pci/sio_pic.c
+++ b/sys/arch/alpha/pci/sio_pic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_pic.c,v 1.22 2003/05/11 19:41:09 deraadt Exp $ */
+/* $OpenBSD: sio_pic.c,v 1.23 2004/06/18 21:33:42 miod Exp $ */
/* $NetBSD: sio_pic.c,v 1.28 2000/06/06 03:10:13 thorpej Exp $ */
/*-
@@ -548,7 +548,7 @@ sio_iointr(framep, vec)
irq = (vec - 0x800) >> 4;
#ifdef DIAGNOSTIC
- if (irq > ICU_LEN || irq < 0)
+ if (irq >= ICU_LEN || irq < 0)
panic("sio_iointr: irq out of range (%d)", irq);
#endif