Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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;