diff options
Diffstat (limited to 'sys/arch/beagle/dev')
-rw-r--r-- | sys/arch/beagle/dev/intc.c | 4 |
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); |