Skip to content
Commit 0110c4b1 authored by Sunil V L's avatar Sunil V L Committed by Thomas Gleixner
Browse files

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: 7023b9d8 ("irqchip/riscv-intc: Add ACPI support")
Signed-off-by: default avatarSunil V L <sunilvl@ventanamicro.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240527081113.616189-1-sunilvl@ventanamicro.com
parent c3f38fa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment