]> git.baikalelectronics.ru Git - kernel.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)
committerWei Xu <xuwei5@hisilicon.com>
Fri, 6 May 2022 02:27:49 +0000 (02:27 +0000)
commitc288d0b41e5b7a4c0141b5afe802f8d3960d0e8b
tree3d471a3f910dbd08f2f0b0cb6189d79d4125ebb4
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
ARM: hisi: Add missing of_node_put after of_find_compatible_node

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>
arch/arm/mach-hisi/platsmp.c