diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-29 18:39:46 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-29 18:39:46 +0000 |
commit | 622c2f2ed2d2446c36fa71f06e49d3ef5c35daeb (patch) | |
tree | 3e57f9e23f8e39ae0cfe7edc85cfd65295ba5ec2 /sys/arch/alpha/pci | |
parent | b4e2c214dd8704e76ed838d0aafbd4979ca1edb6 (diff) |
Fix range check in sio_intr_establish().
Diffstat (limited to 'sys/arch/alpha/pci')
-rw-r--r-- | sys/arch/alpha/pci/sio_pic.c | 4 |
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 d5940ea7c13..6358b458bb4 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.27 2008/06/26 05:42:09 ray Exp $ */ +/* $OpenBSD: sio_pic.c,v 1.28 2008/07/29 18:39:45 miod Exp $ */ /* $NetBSD: sio_pic.c,v 1.28 2000/06/06 03:10:13 thorpej Exp $ */ /*- @@ -451,7 +451,7 @@ sio_intr_establish(v, irq, type, level, fn, arg, name) { void *cookie; - if (irq > ICU_LEN || type == IST_NONE) + if (irq >= ICU_LEN || type == IST_NONE) panic("sio_intr_establish: bogus irq or type"); cookie = alpha_shared_intr_establish(sio_intr, irq, type, level, fn, |