diff options
author | 2011-09-21 10:09:07 +0000 | |
---|---|---|
committer | 2011-09-21 10:09:07 +0000 | |
commit | 780f5c1b8bfa23a1eb39279244f9d7a085af46c9 (patch) | |
tree | e48c85568c4f7f56bf13b3a0568319308d98d586 | |
parent | As noticed by kristaps@, when breaking an overflowing line, (diff) | |
download | wireguard-openbsd-780f5c1b8bfa23a1eb39279244f9d7a085af46c9.tar.xz wireguard-openbsd-780f5c1b8bfa23a1eb39279244f9d7a085af46c9.zip |
Fix range check in intc_intr_establish()
-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); |