diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-09-27 02:46:47 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-09-27 02:46:47 +0000 |
commit | ebe90110b66df5cc8308bf7930a8a65f7ec24fd7 (patch) | |
tree | 87035aff5807f88e657916c2d8e09fdf0b96700f /sys/amd64/isa/nmi.c | |
parent | bc122022f949f237aecea9ea5738eb2735a0040c (diff) | |
download | FreeBSD-src-ebe90110b66df5cc8308bf7930a8a65f7ec24fd7.zip FreeBSD-src-ebe90110b66df5cc8308bf7930a8a65f7ec24fd7.tar.gz |
Return EINVAL if the passed intr is out of bounds.
PR: 30857
Submitted by: David Xu <davidx@viasoft.com.cn>
MFC: 1 week
Diffstat (limited to 'sys/amd64/isa/nmi.c')
-rw-r--r-- | sys/amd64/isa/nmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/isa/nmi.c b/sys/amd64/isa/nmi.c index 5c4da72..26e8348 100644 --- a/sys/amd64/isa/nmi.c +++ b/sys/amd64/isa/nmi.c @@ -480,6 +480,7 @@ icu_setup(int intr, driver_intr_t *handler, void *arg, int flags) #else if ((u_int)intr >= ICU_LEN || intr == ICU_SLAVEID) #endif /* APIC_IO */ + return (EINVAL); if (intr_handler[intr] != isa_strayintr) return (EBUSY); |