From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF1B52F39BE; Sun, 1 Mar 2026 01:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329908; cv=none; b=BHD/OKLhhNDqwqyU/v7T8gp2DEy6eWdQ7y0C6h0KvWG7Kye19xEaDdNfBUab7VILBVyOkiDopoypYFNQn6qB86xFP40gJgvKLTg5s+O+7PoUp7z+fsBm/SnBo+DrwuH0//KSvoPpc8o+mXWcZzRFU7jjg8JN4RaPmNGk0oFANys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329908; c=relaxed/simple; bh=REcf1mm+2mGhcj2S9MA7mR8+kodau3Qvgx86qbVsxD4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k9OcAp4gP7fDA7A/2jWIS5D6j9EsBRSYxsmDlXsACYv+vIxdZtLQoffsfhkxAfwZr3Js/1zgfBJA4mhPWu2S9WztC4GwmDf6U14O1WJ0Mkxb95ZEt8M83NMu//JQJhumUKuWETfArkObf76ZoIWK9hg1+7tws6E5g/RdmAw7c6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j76XP1qW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j76XP1qW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3673C19421; Sun, 1 Mar 2026 01:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329907; bh=REcf1mm+2mGhcj2S9MA7mR8+kodau3Qvgx86qbVsxD4=; h=From:To:Cc:Subject:Date:From; b=j76XP1qWUeJNtcMJuioglHSEoAHr9CyrtTPU+HMdIeiv2bRObQL3XM0+9fzMqXUAu xD95FABj7g92ti+4nqaJmG/4+eDcKPvMVD5KETy2QgNFuycnKamJyc6nLJCwqWFLu1 fHhiEOR76R64Jq0SBL0jVRE1ViD5gEUhCWLXkdI8GBfbaMINLWx0RSc0kEkrug4P3w TaePKdkHFuLwCmoPsqoe9Gaq0NSwnGSRtGOPdcNcTTpTTxrb3KXcDZ9ADkQz1gxZe2 hcL/vbljsDS71FWGjXpZeeKJeI2GkJv5/agfXoSWsivIJ2CTL9vx+cxq9JcxlK1kpN 3Nh5Mk3UQZ9gw== From: Sasha Levin To: stable@vger.kernel.org, johan@kernel.org Cc: Mikko Perttunen , Miaoqian Lin , Stephen Boyd , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org Subject: FAILED: Patch "clk: tegra: tegra124-emc: fix device leak on set_rate()" failed to apply to 5.15-stable tree Date: Sat, 28 Feb 2026 20:51:45 -0500 Message-ID: <20260301015145.1718173-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From da61439c63d34ae6503d080a847f144d587e3a48 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 21 Nov 2025 17:40:03 +0100 Subject: [PATCH] clk: tegra: tegra124-emc: fix device leak on set_rate() 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@vger.kernel.org # 4.2: 6d6ef58c2470 Cc: Mikko Perttunen Cc: Miaoqian Lin Signed-off-by: Johan Hovold Signed-off-by: Stephen Boyd --- drivers/clk/tegra/clk-tegra124-emc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-tegra124-emc.c b/drivers/clk/tegra/clk-tegra124-emc.c index 2a6db04342815..2777e70da8b99 100644 --- a/drivers/clk/tegra/clk-tegra124-emc.c +++ b/drivers/clk/tegra/clk-tegra124-emc.c @@ -197,8 +197,8 @@ static struct tegra_emc *emc_ensure_emc_driver(struct tegra_clk_emc *tegra) tegra->emc_node = NULL; tegra->emc = platform_get_drvdata(pdev); + put_device(&pdev->dev); if (!tegra->emc) { - put_device(&pdev->dev); pr_err("%s: cannot find EMC driver\n", __func__); return NULL; } -- 2.51.0