Re: [PATCH] memory: tegra: Shut down Tegra210 EMC timers before teardown

From: Krzysztof Kozlowski

Date: Mon Oct 12 2026 - 01:58:26 EST


On 11/10/2026 22:00, Myeonghun Pak wrote:
> The training and refresh timers can outlive the EMC state on removal
> or probe failure after clock attachment, causing use-after-free.
>
> Shut down both timers before detaching the clock provider and releasing
> the timing tables to wait for callbacks and prevent rearming. Initialize
> them before clock attachment, since set_rate() can start training.
>
> This issue was found by static analysis.

You are expected to name the tool or be silent. Reading code by LLM is
not static analysis. It's statistical guessing, nothing to do with
static analysis.

Best regards,
Krzysztof