Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156532602
D31957.id95143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
561 B
Referenced Files
None
Subscribers
None
D31957.id95143.diff
View Options
Index: sys/x86/x86/intr_machdep.c
===================================================================
--- sys/x86/x86/intr_machdep.c
+++ sys/x86/x86/intr_machdep.c
@@ -225,8 +225,8 @@
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, May 15, 11:49 AM (15 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33082600
Default Alt Text
D31957.id95143.diff (561 B)
Attached To
Mode
D31957: sys/x86: check for out of range interrupt allocations
Attached
Detach File
Event Timeline
Log In to Comment