From nobody Mon Jun 8 20:53:22 2026 Received: from mta.al2klimov.de (mta.al2klimov.de [162.55.223.79]) (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 9D08C42314F for ; Tue, 26 May 2026 18:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.55.223.79 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779820901; cv=none; b=t9MzE1oxrhQBwoKrl97Tq7oEy9xAinYYNlx/0JvrHYVvMgTcJ5kIlgx3txQuyXVu7/tZOHP1M26e784G73j1uzqGUgXKK7wVkFM3bNJS09pBYt2kwrFzoU/41lM5nLh56v1X2WTSuB848lukMqjF8D+FxyBaztuKtZkRgQC4nGs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779820901; c=relaxed/simple; bh=gI03Mnvi1t4xdO2TE6lrF3QuaIEt++XkYEuyMy9XNfY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mvmFLSyyLJNeSpLkCnE5ztJisvMPgrPu1DZwvE/3eRgO2IGUaB3CVAaez0ItRDfmvoSuUM7ANRZ4Jx4qkCA5x1cu/Cnxp/brK7LZUi1Fr436RB3PlNJjtkhhTRPDP7EK1SNdZQJMA26XQRUK4EF8k7S3Q76omD1sHIEDQUWgDhY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=al2klimov.de; spf=pass smtp.mailfrom=al2klimov.de; dkim=pass (2048-bit key) header.d=al2klimov.de header.i=@al2klimov.de header.b=nOKCY8BS; arc=none smtp.client-ip=162.55.223.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=al2klimov.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=al2klimov.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=al2klimov.de header.i=@al2klimov.de header.b="nOKCY8BS" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=default; bh=gI03Mnvi1t4x dO2TE6lrF3QuaIEt++XkYEuyMy9XNfY=; h=references:in-reply-to:date: subject:cc:to:from; d=al2klimov.de; b=nOKCY8BSCvWzMR55bmGR17UTrOv79avo p+w9faNyDoQ6IPkg57Vm6ilQHFbpZXU3gcB/PYdFAgCLV+1lLqpG3NjrEehYvk07thXxSg qSbGlTjz9r7/GwsVDyhYUTm4Go3zIKfym0pcMznWzT/DJG6Jp6/IbqGs3SnwOHaH9Kbnuf Q6az+jw0Ef7lLt59sQzjk+FQn+reb7oNUSA1xHiuybTAedM9fXYjjz22Y5xM1kANH1Tbie qJKOyQjWZhkO3OzDzCF5xZaBdkOaAwxEEujk3icpIi23jriOq90qGUEiIIGDF6dskt+irp dZj5KL42zNtDJ4bSGLYvjTXikRERtA== Received: from cachy-ak (88.215.123.80.dyn.pyur.net [88.215.123.80]) by mta.al2klimov.de (OpenSMTPD) with ESMTPSA id 750c62ab (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 26 May 2026 18:41:31 +0000 (UTC) From: "Alexander A. Klimov" To: Michal Simek , linux-kernel@vger.kernel.org (open list) Cc: "Alexander A. Klimov" Subject: [PATCH] microblaze: CCF: fix refcount leak Date: Tue, 26 May 2026 20:40:59 +0200 Message-ID: <20260526184105.18962-4-grandmaster@al2klimov.de> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260526184105.18962-1-grandmaster@al2klimov.de> References: <20260526184105.18962-1-grandmaster@al2klimov.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Every value returned from of_clk_get() is supposed to be cleaned up via clk_put() once not needed anymore. Fixes: c1120542b99a ("microblaze: Add support for CCF") Signed-off-by: Alexander A. Klimov --- arch/microblaze/kernel/cpu/cpuinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/microblaze/kernel/cpu/cpuinfo.c b/arch/microblaze/kernel/= cpu/cpuinfo.c index cd9b4450763b..32c508e85408 100644 --- a/arch/microblaze/kernel/cpu/cpuinfo.c +++ b/arch/microblaze/kernel/cpu/cpuinfo.c @@ -133,6 +133,7 @@ void __init setup_cpuinfo_clk(void) cpuinfo.cpu_clock_freq =3D fcpu(cpu, "timebase-frequency"); } else { cpuinfo.cpu_clock_freq =3D clk_get_rate(clk); + clk_put(clk); } =20 if (!cpuinfo.cpu_clock_freq) { --=20 2.54.0