irqdomain: Plug leak in irq_domain_alloc_irqs_locked() error path

When irq_domain_trim_hierarchy() fails in irq_domain_alloc_irqs_locked(),
the error handling path fails to undo the hierarchy allocations.

Add the missing cleanup.

[ tglx: Massage change log ]

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260623075134.4432-2-shikemeng@huaweicloud.com
This commit is contained in:
Kemeng Shi 2026-06-23 15:51:32 +08:00 • committed by Thomas Gleixner
commit 13856e2221