summaryrefslogtreecommitdiff
path: root/sys/arch/beagle
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-09-21 10:09:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-09-21 10:09:08 +0000
commit171668eae3718ac2911189a22745ebfe21f1c01a (patch)
treec9c1ec87124a76b6de6b4212127ba24640c46bb8 /sys/arch/beagle
parentc07ce3d2bf22fef2ebb9ae3292c5bce3c0cd2e4c (diff)
Fix range check in intc_intr_establish()
Diffstat (limited to 'sys/arch/beagle')
-rw-r--r--sys/arch/beagle/dev/intc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/beagle/dev/intc.c b/sys/arch/beagle/dev/intc.c
index 051626e9b8b..8506f3853fb 100644
--- a/sys/arch/beagle/dev/intc.c
+++ b/sys/arch/beagle/dev/intc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intc.c,v 1.5 2011/04/23 03:54:42 drahn Exp $ */
+/* $OpenBSD: intc.c,v 1.6 2011/09/21 10:09:07 miod Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -423,7 +423,7 @@ intc_intr_establish(int irqno, int level, int (*func)(void *),
int psw;
struct intrhand *ih;
- if (irqno < 0 || irqno > NIRQ)
+ if (irqno < 0 || irqno >= NIRQ)
panic("intc_intr_establish: bogus irqnumber %d: %s",
irqno, name);
psw = disable_interrupts(I32_bit);