Re: [PATCH 1/2] cpuidle: qcom-spm: fix device and OF node leaks at probe

From: Konrad Dybcio

Date: Mon Sep 08 2025 - 11:42:07 EST


On 9/8/25 5:22 PM, Johan Hovold wrote:
> Make sure to drop the reference to the saw device taken by
> of_find_device_by_node() after retrieving its driver data during
> probe().
>
> Also drop the reference to the CPU node sooner to avoid leaking it in
> case there is no saw node or device.
>
> Fixes: 60f3692b5f0b ("cpuidle: qcom_spm: Detach state machine from main SPM handling")
> Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>

Konrad