[PATCH v3 0/3] irqdomain: Auto-set IRQ_DOMAIN_FLAG_DESTROY_GC and remove redundant flag from drivers
From: Qingshuang Fu
Date: Sun Sep 06 2026 - 22:42:37 EST
This series makes __irq_domain_instantiate() automatically set
IRQ_DOMAIN_FLAG_DESTROY_GC when dgc_info is supplied, avoiding future
memory-leak pitfalls for new callers.
There is no runtime bug in current mainline; all existing in-tree users
already set this flag manually. Patches 2-3 remove those redundant flag
assignments from driver code which uses irq_domain_instantiate().
Note: Some drivers set IRQ_DOMAIN_FLAG_DESTROY_GC with legacy
irq_domain_create_linear() and irq_alloc_domain_generic_chips() APIs
(e.g. renesas-irqc). Those are untouched because they do not go
through __irq_domain_instantiate().
Changes since v2:
- Drop the Fixes tag, as there is no present-day bug.
- Turn into patchset, add driver cleanup patches.
- Reword commit message to clarify risk applies to future callers only.
v2 thread: <https://lore.kernel.org/all/20260904070943.934476-1-fuqingshuang@xxxxxxxxxx/>
Qingshuang Fu (3):
irqdomain: Set IRQ_DOMAIN_FLAG_DESTROY_GC in __irq_domain_instantiate()
irqchip/lan966x-oic: Drop redundant IRQ_DOMAIN_FLAG_DESTROY_GC
soc/fsl/qe: qe_ports_ic: Drop redundant IRQ_DOMAIN_FLAG_DESTROY_GC
kernel/irq/irqdomain.c | 1 +
drivers/irqchip/irq-lan966x-oic.c | 1 -
drivers/soc/fsl/qe/qe_ports_ic.c | 1 -
3 files changed, 1 insertion(+), 2 deletions(-)
base-commit: df2908090cda368b01ff43709f51890076c56157
--
2.25.1