]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/riscv-intc: Prevent memory leak when riscv_intc_init_common() fails
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 27 May 2024 08:11:13 +0000 (13:41 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Jun 2024 10:29:35 +0000 (12:29 +0200)
commit0110c4b110477bb1f19b0d02361846be7ab08300
tree6a128de471860cfa8ddb31597bfa5f327e1c1007
parentc3f38fa61af77b49866b006939479069cd451173
irqchip/riscv-intc: Prevent memory leak when riscv_intc_init_common() fails

When riscv_intc_init_common() fails, the firmware node allocated is not
freed. Add the missing free().

Fixes: 7023b9d83f03 ("irqchip/riscv-intc: Add ACPI support")
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240527081113.616189-1-sunilvl@ventanamicro.com
drivers/irqchip/irq-riscv-intc.c