Commit 45edfd1d authored by Yinghai Lu's avatar Yinghai Lu Committed by Andi Kleen

[PATCH] x86-64: typo in __assign_irq_vector when updating pos for vector and offset

typo with cpu instead of new_cpu
Signed-off-by: default avatarYinghai Lu <yinghai.lu@amd.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent 926fafeb
...@@ -651,12 +651,12 @@ static int __assign_irq_vector(int irq, cpumask_t mask, cpumask_t *result) ...@@ -651,12 +651,12 @@ static int __assign_irq_vector(int irq, cpumask_t mask, cpumask_t *result)
if (vector == IA32_SYSCALL_VECTOR) if (vector == IA32_SYSCALL_VECTOR)
goto next; goto next;
for_each_cpu_mask(new_cpu, domain) for_each_cpu_mask(new_cpu, domain)
if (per_cpu(vector_irq, cpu)[vector] != -1) if (per_cpu(vector_irq, new_cpu)[vector] != -1)
goto next; goto next;
/* Found one! */ /* Found one! */
for_each_cpu_mask(new_cpu, domain) { for_each_cpu_mask(new_cpu, domain) {
pos[cpu].vector = vector; pos[new_cpu].vector = vector;
pos[cpu].offset = offset; pos[new_cpu].offset = offset;
} }
if (old_vector >= 0) { if (old_vector >= 0) {
int old_cpu; int old_cpu;
......
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