irqchip/gic-v3-its: Fix its node leak in gic_acpi_parse_madt_its()

Fix its node leak when its_probe_one() failed in
gic_acpi_parse_madt_its().

Fixes: 9585a495ac ("irqchip/gic-v3-its: Split allocation from initialisation of its_node")
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Radu Rendec <radu@rendec.net>
Link: https://patch.msgid.link/20260702033050.1583-3-shikemeng@huaweicloud.com
This commit is contained in:
Kemeng Shi 2026-07-02 11:30:46 +08:00 committed by Thomas Gleixner
parent 1efffab6fe
commit 698a8648ca

View File

@ -5743,9 +5743,13 @@ static int __init gic_acpi_parse_madt_its(union acpi_subtable_headers *header,
its->flags |= ITS_FLAGS_FORCE_NON_SHAREABLE;
err = its_probe_one(its);
if (!err)
return 0;
if (err)
goto probe_err;
return 0;
probe_err:
its_node_destroy(its);
node_err:
iort_deregister_domain_token(its_entry->translation_id);
dom_err: