Re: [PATCH] irqchip/bcm7038-l1: Fix potential stale handlers on probe failure

From: Florian Fainelli

Date: Fri Dec 04 2026 - 23:04:21 EST




On 12/2/2026 3:29 AM, Guangshuo Li wrote:
IRQ-domain creation can fail after the per-CPU parent handlers have been
installed. Freeing the controller without clearing those handlers leaves
them referencing freed storage.

Track each installed parent IRQ and detach its handler before releasing
the controller. Also unwind partially initialized CPU resources.

This issue was found by our static analysis tool under development.

Fixes: 5f7f0317ed28 ("IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers")
Signed-off-by: Guangshuo Li <liguangshuo@xxxxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian