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 C9F87FD0049 for ; Sun, 1 Mar 2026 01:42:04 +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=adP03129T0AUoTRB//bsXzui5ePf0kYucIKY5B9Fr70=; b=A0xcwBXVwKLn2Ig9tLhuDdRVtw /lpTIrLokTmxyW7GxlNHceOOfXnwiQeYvC/S9EJCFvPjy0pX8uZBvn4mONSgwdPyv7rWLy4kz7S6g lqyPA9Mbsi3Z67npBL4QUi11W05WnzoX+yFBwn2xL8dhHUET2PFrxBYs1oDOPuH4h7Ff04FmHF7mp h78Pu+5D2j98d89Xal41Z6jWfmjLXzKL2x1plMHCI5f4oMhkUPgFB07amW9ATScRwxkevg+AOv7ER 242memiENQm/3g4AWHC8lj6mzCQ6CoKFTS5AvXdPm5DcBXmYhJe187StFjGLO5wrRZ2DUateBVjfa F3+lKJeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVol-0000000Acgh-3mv9; Sun, 01 Mar 2026 01:42:00 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVog-0000000Acf5-3MG9 for linux-arm-kernel@lists.infradead.org; Sun, 01 Mar 2026 01:41:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 43E8F60123; Sun, 1 Mar 2026 01:41:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FEB0C19421; Sun, 1 Mar 2026 01:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329314; bh=XK485chqRAUqkZ6BF7Q8Flh4ocDzLimSDIKeo7CZc7Y=; h=From:To:Cc:Subject:Date:From; b=svQAWwzssDK/yhSraStRq43nEaojDL9Cd8tdAxvXWjLyIGzcTxKKwqiKaGtUdj3eU d6JV7lY1P1cyLLhQeDxG7vClXf47Lal8gTfYqk9CWAyPaUlBS8SPGDuy2EI0fGK0Fi atvfbFcRQr7jS/+SGtuOYZUct4crIWlJp8QzOi1WWLswADvyDs/xyhfOSMRmM2W/Rn ODvw+0RQ2L0jP3Q17+Ez2dsA2rIewe4ZGK47n/HOhjhjaIKWZAIcDjN6sjhWobNTWN 27yrpRMmWuioxM0/8K3UIVNdQ/ozJ9rKqzr/BFH4ssQL7vABpn4Yyg9jfDvojszzru +ACdLVDKOdOfA== From: Sasha Levin To: stable@vger.kernel.org, johan@kernel.org Cc: Andrew Davis , Nishanth Menon , linux-arm-kernel@lists.infradead.org Subject: FAILED: Patch "soc: ti: k3-socinfo: Fix regmap leak on probe failure" failed to apply to 6.1-stable tree Date: Sat, 28 Feb 2026 20:41:51 -0500 Message-ID: <20260301014152.1703596-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.1-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 c933138d45176780fabbbe7da263e04d5b3e525d Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 27 Nov 2025 14:49:42 +0100 Subject: [PATCH] soc: ti: k3-socinfo: Fix regmap leak on probe failure The mmio regmap allocated during probe is never freed. Switch to using the device managed allocator so that the regmap is released on probe failures (e.g. probe deferral) and on driver unbind. Fixes: a5caf03188e4 ("soc: ti: k3-socinfo: Do not use syscon helper to build regmap") Cc: stable@vger.kernel.org # 6.15 Cc: Andrew Davis Signed-off-by: Johan Hovold Acked-by: Andrew Davis Link: https://patch.msgid.link/20251127134942.2121-1-johan@kernel.org Signed-off-by: Nishanth Menon --- drivers/soc/ti/k3-socinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/k3-socinfo.c b/drivers/soc/ti/k3-socinfo.c index 50c170a995f90..42275cb5ba1c8 100644 --- a/drivers/soc/ti/k3-socinfo.c +++ b/drivers/soc/ti/k3-socinfo.c @@ -141,7 +141,7 @@ static int k3_chipinfo_probe(struct platform_device *pdev) if (IS_ERR(base)) return PTR_ERR(base); - regmap = regmap_init_mmio(dev, base, &k3_chipinfo_regmap_cfg); + regmap = devm_regmap_init_mmio(dev, base, &k3_chipinfo_regmap_cfg); if (IS_ERR(regmap)) return PTR_ERR(regmap); -- 2.51.0