Re: [PATCH] extcon: max14577: Fix potential use-after-free on removal
From: Krzysztof Kozlowski
Date: Thu Nov 26 2026 - 09:38:11 EST
On 26/11/2026 09:25, Guangshuo Li wrote:
> Probe queues delayed cable detection, but removal does not cancel it.
> The worker can therefore run after the device resources and private
> data have been released.
>
> Use managed delayed work so cable detection is cancelled before its
> extcon device and private data are released.
>
> This issue was found by our static analysis tool under development.
LLM is not a static analysis tool.
Best regards,
Krzysztof