linux/include/linux/irqchip
Lorenzo Pieralisi dc2eae1620 irqchip/gic-v5: Release IRS iomem region on driver init failure
In gicv5_irs_of_init(), an IRS is set-up using of_io_request_and_map() to
request its memory region (corresponding to the configuration frame) and
map the IRS configuration frame.

On gicv5_irs_of_init() failure, the driver unmaps the IRS iomem region but
does not release the requested memory region leaving it allocated in the
iomem resource tree.

Fix it by releasing the iomem region on gicv5_irs_of_init() probe failure.

Likewise, on both OF and ACPI driver init failure, IRS iomem regions are
requested but never released in gicv5_irs_remove().

Stash a copy of the IRS iomem region in a struct resource in
struct gicv5_irs_chip_data and use it to release the requested region in
gicv5_irs_remove() if the driver probe fails.

Fixes: 5cb1b6dab2 ("irqchip/gic-v5: Add GICv5 IRS/SPI support")
Fixes: 35866efa52 ("irqchip/gic-v5: Add ACPI IRS probing")
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://sashiko.dev/#/message/20260810104747.E5CE71F000E9%40smtp.kernel.org
Link: https://patch.msgid.link/20260812-gicv5-7-2-fixes-v1-5-3743e82c69a4@kernel.org
2026-08-20 10:23:53 +02:00
..
arm-gic-common.h irqchip/gic-v3: Make distributor priorities variables 2024-06-24 18:16:44 +01:00
arm-gic-v3-prio.h arm64: irqchip/gic-v3: Select priorities at boot time 2024-06-24 18:16:45 +01:00
arm-gic-v3.h irqchip/gic: Replace __ASSEMBLY__ with __ASSEMBLER__ 2026-04-30 12:53:06 +02:00
arm-gic-v4.h KVM: arm64: WARN if unmapping a vLPI fails in any path 2025-06-20 13:52:29 -07:00
arm-gic-v5.h irqchip/gic-v5: Release IRS iomem region on driver init failure 2026-08-20 10:23:53 +02:00
arm-gic.h irqchip/gic: Replace __ASSEMBLY__ with __ASSEMBLER__ 2026-04-30 12:53:06 +02:00
arm-vgic-info.h irqchip/gic: Expose CPU interface VA to KVM 2025-11-24 14:29:11 -08:00
arm-vic.h
chained_irq.h
irq-bcm2836.h
irq-madera.h
irq-msi-lib.h irqchip/irq-msi-lib: Fix build with PCI disabled 2025-07-10 23:46:05 +02:00
irq-omap-intc.h
irq-renesas-rzt2h.h irqchip: Add RZ/{T2H,N2H} Interrupt Controller (ICU) driver 2025-12-15 22:44:32 +01:00
irq-renesas-rzv2h.h irqchip/renesas-rzv2h: Add DMA ACK signal routing support 2026-06-08 17:02:21 +05:30
irq-sa11x0.h
riscv-aplic.h
riscv-imsic.h irqchip/riscv-imsic: Add nr_guest_files in per-HART local config 2026-05-26 09:05:10 +05:30
xtensa-mx.h
xtensa-pic.h