]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: versatile: Add missing of_node_put in dcscb_init
authorPeng Wu <wupeng58@huawei.com>
Thu, 28 Apr 2022 23:03:56 +0000 (01:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:42 +0000 (10:22 +0200)
commit372575b88064487da1dc3d424b8031a07568f609
treecbe96d6e5e78bb7f07f51ccf9a55f33fcb2f635c
parent9dd3b2ea40fafcc35bae3ff9fbc28664df5629d1
ARM: versatile: Add missing of_node_put in dcscb_init

[ Upstream commit f6fd953038061c8ef909e5f481a6770b7bbe15d7 ]

The device_node pointer is returned by of_find_compatible_node
with refcount incremented. We should use of_node_put() to avoid
the refcount leak.

Signed-off-by: Peng Wu <wupeng58@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220428230356.69418-1-linus.walleij@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-vexpress/dcscb.c