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 CC4C1E6817A for ; Tue, 17 Feb 2026 12:34:43 +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: Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:From:Cc:To:Subject: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=jx6DrwFX8ki8xaKk1CHdtcKX3GWYs/661XnR/V1nwGQ=; b=HpsP25vA76NuCSHnlb5HBxNj+J 80DB8e6PLvBCKqzaa0xLQMUXjoEqVT3NBoL0l/RwAjdqSnS/qyWPPR7ayGIec579lH+B/8/IIMm4m 4/RYvvF4MKtl5c//WR+J3NvlkTHAxfFz+d9yimbGiOzM9T/ck2CiNuEQvCkCBr4DDDaiDKrorsBYo cHIBaTTwG8SBbxBi1YUkLMF7Z+ohgdo57SBuDYJ+c71xWbbtZnO1pAzdNY1JRAKVQc+oz76sPQ6Tx 81GpQBfU7yykPnL3/0ZzpKj6QN0iS1tuCl5DnAHkZr9CXM2wn9WZ/IKNrII2mqNq1nPkxowcDt9lb WKDhlJgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vsKHQ-00000008DgI-2YBe; Tue, 17 Feb 2026 12:34:16 +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 1vsKHP-00000008Dg9-3H1o; Tue, 17 Feb 2026 12:34:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 6422A61334; Tue, 17 Feb 2026 12:33:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A87AC4CEF7; Tue, 17 Feb 2026 12:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771331624; bh=UalrvtjqHt8yUx6RkL+iO3sCWQcaR1m9KEVeDW0Mpqc=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=c2E3uTyhnEQirat9EQC0ieZ76RAM27ZAIPSkRTQtvKd21fleQ4DwDiRrvv4htccAZ eLXAXl4Wec5yuQzNrN/9fVBh9mQZ6OpSFGTbn69sM3+27RgaaoV39hJ7EnayFTLda7 cjk06pUmZVkPUbRHtv5fX1ZYkVACqFEIeHzx8Vcw= Subject: Patch "clk: mediatek: fix of_iomap memory leak" has been added to the 6.1-stable tree To: 1468888505@139.com,angelogioacchino.delregno@collabora.com,chun-jie.chen@mediatek.com,dzm91@hust.edu.cn,gregkh@linuxfoundation.org,ikjn@chromium.org,linux-arm-kernel@lists.infradead.org,linux-mediatek@lists.infradead.org,matthias.bgg@gmail.com,miles.chen@mediatek.com,mturquette@baylibre.com,patches@lists.linux.dev,sboyd@kernel.org,u201911157@hust.edu.cn,weiyi.lu@mediatek.com,wenst@chromium.org Cc: From: Date: Tue, 17 Feb 2026 13:33:37 +0100 In-Reply-To: <20260211012351.2076922-1-1468888505@139.com> Message-ID: <2026021737-from-steep-235b@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore 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 This is a note to let you know that I've just added the patch titled clk: mediatek: fix of_iomap memory leak to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: clk-mediatek-fix-of_iomap-memory-leak.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From stable+bounces-215733-greg=kroah.com@vger.kernel.org Wed Feb 11 02:24:25 2026 From: Li hongliang <1468888505@139.com> Date: Wed, 11 Feb 2026 09:23:51 +0800 Subject: clk: mediatek: fix of_iomap memory leak To: gregkh@linuxfoundation.org, stable@vger.kernel.org, u201911157@hust.edu.cn Cc: patches@lists.linux.dev, linux-kernel@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, miles.chen@mediatek.com, wenst@chromium.org, chun-jie.chen@mediatek.com, ikjn@chromium.org, weiyi.lu@mediatek.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dzm91@hust.edu.cn Message-ID: <20260211012351.2076922-1-1468888505@139.com> From: Bosi Zhang [ Upstream commit 3db7285e044144fd88a356f5b641b9cd4b231a77 ] Smatch reports: drivers/clk/mediatek/clk-mtk.c:583 mtk_clk_simple_probe() warn: 'base' from of_iomap() not released on lines: 496. This problem was also found in linux-next. In mtk_clk_simple_probe(), base is not released when handling errors if clk_data is not existed, which may cause a leak. So free_base should be added here to release base. Fixes: c58cd0e40ffa ("clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers") Signed-off-by: Bosi Zhang Reviewed-by: Dongliang Mu Link: https://lore.kernel.org/r/20230422084331.47198-1-u201911157@hust.edu.cn Signed-off-by: Stephen Boyd Signed-off-by: Li hongliang <1468888505@139.com> Signed-off-by: Greg Kroah-Hartman --- drivers/clk/mediatek/clk-mtk.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -505,8 +505,10 @@ int mtk_clk_simple_probe(struct platform num_clks += mcd->num_mux_clks; clk_data = mtk_alloc_clk_data(num_clks); - if (!clk_data) - return -ENOMEM; + if (!clk_data) { + r = -ENOMEM; + goto free_base; + } if (mcd->fixed_clks) { r = mtk_clk_register_fixed_clks(mcd->fixed_clks, @@ -594,6 +596,7 @@ unregister_fixed_clks: mcd->num_fixed_clks, clk_data); free_data: mtk_free_clk_data(clk_data); +free_base: if (mcd->shared_io && base) iounmap(base); Patches currently in stable-queue which might be from 1468888505@139.com are queue-6.1/devlink-rate-unset-parent-pointer-in-devl_rate_nodes_destroy.patch queue-6.1/ksmbd-set-attr_ctime-flags-when-setting-mtime.patch queue-6.1/clk-mediatek-fix-of_iomap-memory-leak.patch