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>
Thu, 9 Jun 2022 08:22:42 +0000 (10:22 +0200)
commita3265a9440030068547a20dfee646666f3ca5278
treeee0198e01c4ff212f532eeeaf01a9b2618c70784
parent80b06c4afc14fc9f7db38dff3ff2a05ca738a58c
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