WSL2-Linux-Kernel/arch/powerpc/platforms/cell/spufs
Miaoqian Lin 69e9fa07b2 powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader
[ Upstream commit 6ac059dacf ]

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: 0afacde3df ("[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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:24:13 +02:00
..
.gitignore
Makefile
backing_ops.c
context.c
coredump.c
fault.c
file.c
gang.c
hw_ops.c
inode.c
lscsa_alloc.c
run.c
sched.c
spu_restore.c
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_save.c
spu_save_crt0.S
spu_save_dump.h_shipped
spu_utils.h
spufs.h
sputrace.h
switch.c
syscalls.c