]> git.hungrycats.org Git - linux/commitdiff
Fix IO-APIC vector allocation boundary case - we never want to
authorLinus Torvalds <torvalds@home.transmeta.com>
Sun, 20 Apr 2003 09:00:26 +0000 (02:00 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 20 Apr 2003 09:00:26 +0000 (02:00 -0700)
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.

arch/i386/kernel/io_apic.c

index 36070279601112c17289bc15ac74d705f7c590fd..ce1a2dcc55f4b7694b4faa0abb7cc3c3927ab5e6 100644 (file)
@@ -1117,7 +1117,7 @@ next:
        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;
        }