]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: hisi: Add missing of_node_put after of_find_compatible_node
authorPeng Wu <wupeng58@huawei.com>
Thu, 28 Apr 2022 10:43:06 +0000 (10:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:18 +0000 (16:59 +0200)
commitdd4be8ecfb41a29e7c4e551b4e866157ce4a3429
treeae4bd6a414b51df556175d900aca93a75310c102
parentef618baeed3f0031185616a016637cd29f729617
ARM: hisi: Add missing of_node_put after of_find_compatible_node

[ Upstream commit 9bc72e47d4630d58a840a66a869c56b29554cfe4 ]

of_find_compatible_node  will increment the refcount of the returned
device_node. Calling of_node_put() to avoid the refcount leak

Signed-off-by: Peng Wu <wupeng58@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-hisi/platsmp.c