]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/riscv-intc: Add missing free() callback in riscv_intc_domain_ops
authorNick Hu <nick.hu@sifive.com>
Fri, 14 Nov 2025 07:28:44 +0000 (15:28 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Nov 2025 15:52:34 +0000 (16:52 +0100)
commit14473a1f88596fd729e892782efc267c0097dd1d
tree28fda1d12a4ad6d051413a1ec6d34837a48b24ae
parente9a6fb0bcdd7609be6969112f3fbfcce3b1d4a7c
irqchip/riscv-intc: Add missing free() callback in riscv_intc_domain_ops

The irq_domain_free_irqs() helper requires that the irq_domain_ops->free
callback is implemented. Otherwise, the kernel reports the warning message
"NULL pointer, cannot free irq" when irq_dispose_mapping() is invoked to
release the per-HART local interrupts.

Set irq_domain_ops->free to irq_domain_free_irqs_top() to cure that.

Fixes: 832f15f42646 ("RISC-V: Treat IPIs as normal Linux IRQs")
Signed-off-by: Nick Hu <nick.hu@sifive.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251114-rv-intc-fix-v1-1-a3edd1c1a868@sifive.com
drivers/irqchip/irq-riscv-intc.c