genirq: Initialize resend_node hlist for all interrupt descriptors
authorDawei Li <dawei.li@shingroup.cn>
Mon, 22 Jan 2024 08:57:15 +0000 (16:57 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Jan 2024 13:15:41 +0000 (14:15 +0100)
commitb184c8c2889ceef0a137c7d0567ef9fe3d92276e
treeae6b1f15b3aae307736818c02b0f7aae747d7227
parent6613476e225e090cc9aad49be7fa504e290dd33d
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: bc06a9e08742 ("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
kernel/irq/irqdesc.c