powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 3 Jun 2022 12:15:42 +0000 (16:15 +0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2022 12:21:18 +0000 (22:21 +1000)
commit6ac059dacffa8ab2f7798f20e4bd3333890c541c
treef72b11e98cf7b9dece9ca15b67af663fe9091ad8
parent8c9f37a78f70fad763f0d61f03245bb011765086
powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader

of_find_node_by_path() returns remote device nodepointer with
refcount incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.

Fixes: 0afacde3df4c ("[POWERPC] spufs: allow isolated mode apps by starting the SPE loader")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220603121543.22884-1-linmq006@gmail.com
arch/powerpc/platforms/cell/spufs/inode.c