From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85246FD0049 for ; Sun, 1 Mar 2026 01:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=TnGgoGqJKI7bXhtAk6/Hvzu7QpLJQ049q3ub8IPyom0=; b=hkRXsnOgVcr+EaWbZx12YRFGVQ Wx91dDhHsL4GjW5MY++Jvfaciq9LRVyoyA6r2ceIBeFeUXFENfp3D/lywAvpj6Z4I2fNvLcWuBThm 0+680teb30nTgMIwRCNl8GT/sYkK1EsfK1n5CbqAcH/YQeC742I+gvRkaVVGctoiRpAY2lAPZ4O0P 2l0W+6r5RLqpRmDwrmbSMp1OzFggzLsQHP3wGh+NkCx5M5h4cIrkB4rOscX4UkTrfnfaWG+GfEHoa MACk9G2gLCJVjJF5X/VyCdxT0WoqBCYtR/qpZ0J+O6EU2+0u+M0tot+lia7KqSUZqMHoMdkIbfgKp iQXKoP5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVS1-0000000ASmj-0aWF; Sun, 01 Mar 2026 01:18:29 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVRz-0000000ASmI-2eez; Sun, 01 Mar 2026 01:18:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 09635600AD; Sun, 1 Mar 2026 01:18:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECBACC19421; Sun, 1 Mar 2026 01:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772327906; bh=d4ti8/3nRWDN9ciZXieS7vclGI+bspTUmqfIUr+EiLw=; h=From:To:Cc:Subject:Date:From; b=GI/WRl0INqGSylAgCJl826Jc382FM1tbNUJsm2WanscMEUUoVazns+YdTl6tii5OJ fYGTzRaz9AlcWeGJIh+tBir9JXgpI/zlxY1fuis9u/JZD+/kGG55EJPc3mUu20/Xy9 YlcEa/+EKfOgKN2cfIDrZS92GIOwRMYc2QfvpubCD7PV635424zPxapOGdhhBeko0h a2+uo+IMWh8KFywli+Ei1OhrqI6Sbasa68EBkIIL2flM7VJmnjTjgH9PYSHF/+rYTw mFhTP1XaClH/uCw1GGDlw72SwI98mLe8TQv2VzgT4TQqPH+Y6X/oEklEPMomVzMSgi J6BC6UWm15xww== From: Sasha Levin To: stable@vger.kernel.org, johan@kernel.org Cc: Yong Wu , Miaoqian Lin , Krzysztof Kozlowski , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: FAILED: Patch "memory: mtk-smi: fix device leak on larb probe" failed to apply to 6.12-stable tree Date: Sat, 28 Feb 2026 20:18:24 -0500 Message-ID: <20260301011824.1672775-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The patch below does not apply to the 6.12-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 9dae65913b32d05dbc8ff4b8a6bf04a0e49a8eb6 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 21 Nov 2025 17:46:23 +0100 Subject: [PATCH] memory: mtk-smi: fix device leak on larb probe Make sure to drop the reference taken when looking up the SMI device during larb probe on late probe failure (e.g. probe deferral) and on driver unbind. Fixes: cc8bbe1a8312 ("memory: mediatek: Add SMI driver") Fixes: 038ae37c510f ("memory: mtk-smi: add missing put_device() call in mtk_smi_device_link_common") Cc: stable@vger.kernel.org # 4.6: 038ae37c510f Cc: stable@vger.kernel.org # 4.6 Cc: Yong Wu Cc: Miaoqian Lin Signed-off-by: Johan Hovold Link: https://patch.msgid.link/20251121164624.13685-3-johan@kernel.org Signed-off-by: Krzysztof Kozlowski --- drivers/memory/mtk-smi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c index dd6150d200e89..3609bfd3c64be 100644 --- a/drivers/memory/mtk-smi.c +++ b/drivers/memory/mtk-smi.c @@ -685,6 +685,7 @@ static void mtk_smi_larb_remove(struct platform_device *pdev) device_link_remove(&pdev->dev, larb->smi_common_dev); pm_runtime_disable(&pdev->dev); component_del(&pdev->dev, &mtk_smi_larb_component_ops); + put_device(larb->smi_common_dev); } static int __maybe_unused mtk_smi_larb_resume(struct device *dev) -- 2.51.0