OpenCloudOS-Kernel/arch/powerpc/sysdev/xive
Miaoqian Lin 1d1fb9618b powerpc/xive: Fix refcount leak in xive_spapr_init
of_find_compatible_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.

Fixes: eac1e731b5 ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220512090535.33397-1-linmq006@gmail.com
2022-05-22 15:58:30 +10:00
..
Kconfig powerpc/xive: Change IRQ domain to a tree domain 2021-11-17 21:55:42 +11:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
common.c powerpc/kasan: Disable address sanitization in kexec paths 2022-05-22 15:58:29 +10:00
native.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
spapr.c powerpc/xive: Fix refcount leak in xive_spapr_init 2022-05-22 15:58:30 +10:00
xive-internal.h powerpc/xive: Fix compile when !CONFIG_PPC_POWERNV. 2021-12-02 10:40:38 +11:00