]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Fix device node refcount leak in fdt_cpu_clk_init()
authorMiaoqian Lin <linmq006@gmail.com>
Sun, 30 Mar 2025 08:31:09 +0000 (16:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:27 +0000 (14:39 +0200)
commit035a4a852ee830f415e3987bc8c6f65abe5800d4
tree00f25e691d35793b9fcb57fcbc764f261b8fe74c
parent396cdb580e2e91043a78cd4b9d4d81b980c897a7
LoongArch: Fix device node refcount leak in fdt_cpu_clk_init()

[ Upstream commit 2e3bc71e4f394ecf8f499d21923cf556b4bfa1e7 ]

Add missing of_node_put() to properly handle the reference count of the
device node obtained from of_get_cpu_node().

Fixes: 44a01f1f726a ("LoongArch: Parsing CPU-related information from DTS")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/loongarch/kernel/env.c