Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144627198
D31957.1775863497.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D31957.1775863497.diff
View Options
Index: sys/x86/x86/intr_machdep.c
===================================================================
--- sys/x86/x86/intr_machdep.c
+++ sys/x86/x86/intr_machdep.c
@@ -221,12 +221,13 @@
int
intr_register_source(struct intsrc *isrc)
{
- int error, vector;
+ u_int vector;
+ int error;
KASSERT(intr_pic_registered(isrc->is_pic), ("unregistered PIC"));
vector = isrc->is_pic->pic_vector(isrc);
- KASSERT(vector < num_io_irqs, ("IRQ %d too large (%u irqs)", vector,
- num_io_irqs));
+ if (vector >= num_io_irqs)
+ return (EINVAL);
if (interrupt_sources[vector] != NULL)
return (EEXIST);
error = intr_event_create(&isrc->is_event, isrc, 0, vector,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 11:24 PM (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28315675
Default Alt Text
D31957.1775863497.diff (664 B)
Attached To
Mode
D31957: sys/x86: check for out of range interrupt allocations
Attached
Detach File
Event Timeline
Log In to Comment