Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792594253; b=mMoSaMTKKiFEuhQOSP+lgEuhMEdD/oc6SFybZG3rShi6/N9kpx89tA8Mhee5/MTMQFIW OMKzfGr+kPjVDNia6bXn/QkshqBMp7c/aMihCvQoKZ2aP/8cIezhl+5yWdz5+x1Ccwudg n6K6nEsx7HNMKoSiQMlGSaKZJEgtWN26BDJEvA/KFrbItRS75Lm3iZ0YhMMxgCxz82DOb bbCkZpacKQpbV8D7/U1Gq+xXSAySaCaFIezSvpTJ57CohjCdkxguJMiprkMCMSnoXEsdh RX/vQuMnz4DOdEwy9Cr0T13V6S2uf3bk6hOqgXUfMPc5/XkNf9TlxTJj8W0Kb8ffaEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792594253; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=GHcQbatqpNjk48KSGyLJzDpx5seVB6a/ZBBBIMMvt5s=; b=Cn/9oSN1jj2vk1JF8xzSTPTumhm47GfrY8S/LavoMImEssnFrw/ESO3jXRDjCigC3IG0 t+lq46HUmpUVh93fEg4uHkyvar2BoReZCLKNwpuK2ixu/tBUz7zGxuIS0jdV8XcweXaI9 7JSUK+PfSrBY08bI1Ql3ZK1xIr7vAnKOnDnu506J0KQnSQILtHQ2miDgaCmanV0BA8l00 nuVdzAqzskqlG5ZrbpPxPJO+KesIRStTH6WTg0xctX8kkXqGK+/wKtgRibrJCrY00zTvw tUHjLOqord6IXUoe3EuacT1b3HCm5iQUnLApGCAL7AHm4nI93NZwqq338PNz5Z/3C0A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=CD9oKXp4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F808606A31A for ; Wed, 21 Oct 2026 14:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=CD9oKXp4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A48751F000C1; Wed, 21 Oct 2026 14:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792594253; bh=GHcQbatqpNjk48KSGyLJzDpx5seVB6a/ZBBBIMMvt5s=; h=Subject:To:Cc:From:Date; b=CD9oKXp4MHaJdYfYXWcU/zLPaszyB2vSkxpQ8wIkrN/mTriZLV/tCMve7/uWIOFsF bks1fDAgZYf5e4hmk0nvnS1GMMFJpWxuAa20Oo7vFMFSXOBrjeO5xwDRmeV3kTFRhr OIeMdIfWP3KgKLlo92Pe6v9EHaMMrBvA18NDL2mM= Subject: FAILED: patch "[PATCH] i2c: viai2c-wmt: Fix clock leak in wmt_i2c_probe()" failed to apply to 6.1-stable tree To: vulab@iscas.ac.cn,andi.shyti@kernel.org Cc: From: Date: Wed, 21 Oct 2026 16:43:01 +0200 Message-ID: <2026102101-sculpture-murmuring-9b82@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit 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 . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x aaabefc79b0ff0018e8e3832169bbe359d0551fc # git commit -s git send-email --to '' --in-reply-to '2026102101-sculpture-murmuring-9b82@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From aaabefc79b0ff0018e8e3832169bbe359d0551fc Mon Sep 17 00:00:00 2001 From: Wentao Liang Date: Wed, 16 Sep 2026 07:06:31 +0000 Subject: [PATCH] i2c: viai2c-wmt: Fix clock leak in wmt_i2c_probe() In wmt_i2c_probe(), i2c->clk is acquired using of_clk_get(). If any subsequent operation fails or when the module is unloaded, the clock reference count is never decremented via clk_put(), leading to a resource leak. Switch to devm_clk_get() so that the clock is automatically managed and released. Fixes: 560746eb79d3 ("i2c: vt8500: Add support for I2C bus on Wondermedia SoCs") Cc: stable@vger.kernel.org Signed-off-by: Wentao Liang Signed-off-by: Andi Shyti Link: https://patch.msgid.link/20260916070631.1965713-1-vulab@iscas.ac.cn diff --git a/drivers/i2c/busses/i2c-viai2c-wmt.c b/drivers/i2c/busses/i2c-viai2c-wmt.c index d3dda7534b0a..c10b4fd9b553 100644 --- a/drivers/i2c/busses/i2c-viai2c-wmt.c +++ b/drivers/i2c/busses/i2c-viai2c-wmt.c @@ -116,7 +116,7 @@ static int wmt_i2c_probe(struct platform_device *pdev) if (err) return err; - i2c->clk = of_clk_get(np, 0); + i2c->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(i2c->clk)) return dev_err_probe(&pdev->dev, PTR_ERR(i2c->clk), "unable to request clock\n");