]> 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)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:30 +0000 (15:58 +1000)
commitd91617fc451f248da2c638a10f4106b652da2bf2
tree87b3962545fb5a8a7ef8e0fe370513003a3efa42
parentdc62118e41234250909abc65042b3b4272af7a32
powerpc/powernv: fix missing of_node_put in uv_init()

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
arch/powerpc/platforms/powernv/ultravisor.c