Skip to content

Commit b184c8c

Browse files
Dawei LiKAGA-KOKO
authored andcommitted
genirq: Initialize resend_node hlist for all interrupt descriptors
For a CONFIG_SPARSE_IRQ=n kernel, early_irq_init() is supposed to initialize all interrupt descriptors. It does except for irq_desc::resend_node, which ia only initialized for the first descriptor. Use the indexed decriptor and not the base pointer to address that. Fixes: bc06a9e ("genirq: Use hlist for managing resend handlers") Signed-off-by: Dawei Li <dawei.li@shingroup.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Marc Zyngier <maz@kernel.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240122085716.2999875-5-dawei.li@shingroup.cn
1 parent 6613476 commit b184c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/irqdesc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ int __init early_irq_init(void)
600600
mutex_init(&desc[i].request_mutex);
601601
init_waitqueue_head(&desc[i].wait_for_threads);
602602
desc_set_defaults(i, &desc[i], node, NULL, NULL);
603-
irq_resend_init(desc);
603+
irq_resend_init(&desc[i]);
604604
}
605605
return arch_early_irq_init();
606606
}

0 commit comments

Comments
 (0)