diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-05 08:32:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 16:16:00 +0300 |
commit | 79b8eae24b7ee157bda07695d802be8576983fa8 (patch) | |
tree | c687b771c47452f6b1b67634cc257f68fb083e78 /arch/powerpc/platforms/cell/axon_msi.c | |
parent | 4288eb035ba4ddb53245e9365c919bb51ac00c2c (diff) | |
download | linux-79b8eae24b7ee157bda07695d802be8576983fa8.tar.xz |
powerpc/xive: Fix refcount leak in xive_get_max_prio
[ Upstream commit 255b650cbec6849443ce2e0cdd187fd5e61c218c ]
of_find_node_by_path() 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: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220605053225.56125-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/axon_msi.c')
0 files changed, 0 insertions, 0 deletions