Commit 6f06499b authored by Linus Torvalds's avatar Linus Torvalds

Fix IO-APIC vector allocation boundary case - we never want to

allocate FIRST_SYSTEM_VECTOR as an external interrupt. It's unlikely,
but could happen if we have a _ton_ of interrupt sources.

Found by Chuck Ebbert.
parent e9148e42
......@@ -1117,7 +1117,7 @@ static int __init assign_irq_vector(int irq)
if (current_vector == SYSCALL_VECTOR)
goto next;
if (current_vector > FIRST_SYSTEM_VECTOR) {
if (current_vector >= FIRST_SYSTEM_VECTOR) {
offset = (offset + 1) & 7;
current_vector = FIRST_DEVICE_VECTOR + offset;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment