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

Commit ad7d6c7a authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

x86/irq: Fix move_irq_desc() for nodes without ram



Don't move it if target node is -1.

Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
LKML-Reference: <4A785B5D.4070702@kernel.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7b2aa037
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,8 +107,8 @@ static struct irq_desc *__real_move_irq_desc(struct irq_desc *old_desc,

struct irq_desc *move_irq_desc(struct irq_desc *desc, int node)
{
	/* those all static, do move them */
	if (desc->irq < NR_IRQS_LEGACY)
	/* those static or target node is -1, do not move them */
	if (desc->irq < NR_IRQS_LEGACY || node == -1)
		return desc;

	if (desc->node != node)