]> 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)
committerArnd Bergmann <arnd@arndb.de>
Tue, 3 May 2022 14:58:06 +0000 (16:58 +0200)
commite2b1353bbd8ecc2172fb6c6f7d677e3a16570444
treef54b9d275decd0f80668ce505bff967f8beaff69
parent7272c9e8bd26b792aff63ca5faf175c2df0f8f4d
ARM: versatile: Add missing of_node_put in dcscb_init

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>
arch/arm/mach-versatile/dcscb.c