diff options
-rw-r--r-- | arch/x86_64/kernel/io_apic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c index 49e94f7994c5..b848f4808510 100644 --- a/arch/x86_64/kernel/io_apic.c +++ b/arch/x86_64/kernel/io_apic.c | |||
@@ -651,12 +651,12 @@ next: | |||
651 | if (vector == IA32_SYSCALL_VECTOR) | 651 | if (vector == IA32_SYSCALL_VECTOR) |
652 | goto next; | 652 | goto next; |
653 | for_each_cpu_mask(new_cpu, domain) | 653 | for_each_cpu_mask(new_cpu, domain) |
654 | if (per_cpu(vector_irq, cpu)[vector] != -1) | 654 | if (per_cpu(vector_irq, new_cpu)[vector] != -1) |
655 | goto next; | 655 | goto next; |
656 | /* Found one! */ | 656 | /* Found one! */ |
657 | for_each_cpu_mask(new_cpu, domain) { | 657 | for_each_cpu_mask(new_cpu, domain) { |
658 | pos[cpu].vector = vector; | 658 | pos[new_cpu].vector = vector; |
659 | pos[cpu].offset = offset; | 659 | pos[new_cpu].offset = offset; |
660 | } | 660 | } |
661 | if (old_vector >= 0) { | 661 | if (old_vector >= 0) { |
662 | int old_cpu; | 662 | int old_cpu; |