From d31566c1612db946049d7fbc48d3df66c44dc727 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 18 Jun 2004 21:33:43 +0000 Subject: Correct range validation in sio_iointr(). --- sys/arch/alpha/pci/sio_pic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/alpha/pci') 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 -- cgit v1.2.3