Re: [PATCH 2/6] mfd: atc260x: Fix potential use-after-free on probe failure
From: Cristian Ciocaltea
Date: Sat Oct 31 2026 - 08:14:30 EST
On 2026/10/31, Guangshuo Li wrote:
> The IRQ chip is device-managed, but the child registration failure path
> also deletes it explicitly. Subsequent devres cleanup can then access
> the freed IRQ-chip data. Let devres perform the IRQ-chip teardown.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: f7cb7fe34db9 ("mfd: Add MFD driver for ATC260x PMICs")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: OpenAI:gpt-6-astra
> Signed-off-by: Guangshuo Li <liguangshuo@xxxxxxxxxxxxxxx>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>