Re: [PATCH] clk: tegra: tegra124-emc: fix device leak on set_rate()
From: Johan Hovold
Date: Wed Jan 14 2026 - 06:00:05 EST
On Fri, Nov 21, 2025 at 05:40:03PM +0100, Johan Hovold wrote:
> Make sure to drop the reference taken when looking up the EMC device and
> its driver data on first set_rate().
>
> Note that holding a reference to a device does not prevent its driver
> data from going away so there is no point in keeping the reference.
>
> Fixes: 2db04f16b589 ("clk: tegra: Add EMC clock driver")
> Fixes: 6d6ef58c2470 ("clk: tegra: tegra124-emc: Fix missing put_device() call in emc_ensure_emc_driver")
> Cc: stable@xxxxxxxxxxxxxxx # 4.2: 6d6ef58c2470
> Cc: Mikko Perttunen <mperttunen@xxxxxxxxxx>
> Cc: Miaoqian Lin <linmq006@xxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Can this one be picked up for 6.19 (or 6.20) now?
Johan