]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: fix missing of_node_put in uv_init()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Thu, 7 Apr 2022 09:00:43 +0000 (09:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:43 +0000 (10:22 +0200)
commita0209848030310b81128fb177bf4fca087b64728
tree56cee6fe93630f0ef019ab798db9340e6ff4b7be
parent0a0d07c3525fc1f9599787e8aaa603736dad7ab5
powerpc/powernv: fix missing of_node_put in uv_init()

[ Upstream commit d91617fc451f248da2c638a10f4106b652da2bf2 ]

of_find_compatible_node() returns node pointer with refcount incremented,
use of_node_put() on it when done.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220407090043.2491854-1-lv.ruyi@zte.com.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/powernv/ultravisor.c