[PATCH] cpufreq: pmac64: Add missing pmf_put_function() calls

2025-03-18 Thread Miaoqian Lin
Fix reference count leak when pmf_find_function() fails for one function, Add missing pmf_put_function() calls. Fixes: 9a699aefa87c ("[PATCH] 4/5 powerpc: Add cpufreq support for all desktop G5") Signed-off-by: Miaoqian Lin --- drivers/cpufreq/pmac64-cpufreq.c | 2 ++ 1 file

[PATCH] selftests/powerpc: Fix resource leaks

2022-12-05 Thread Miaoqian Lin
test for all DSCR sysfs interfaces") Signed-off-by: Miaoqian Lin --- tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c b/tools/testing/selftests/po

[PATCH] powerpc/cell/axon_msi: Fix refcount leak in setup_msi_msg_address

2022-06-04 Thread Miaoqian Lin
of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() in the error path to avoid refcount leak. Fixes: ce21b3c9648a ("[CELL] add support for MSI on Axon-based Cell systems") Signed-off-by

[PATCH] cxl: Fix refcount leak in cxl_calc_capp_routing

2022-06-04 Thread Miaoqian Lin
: Add psl9 specific code") Signed-off-by: Miaoqian Lin --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index 3de0aea62ade..62385a529d86 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -387,6 +38

[PATCH] powerpc/xive: Fix refcount leak in xive_get_max_prio

2022-06-04 Thread Miaoqian Lin
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

[PATCH v2] powerpc/85xx: Fix reference leak in xes_mpc85xx_setup_arch

2022-06-03 Thread Miaoqian Lin
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: 3038acf9091f ("powerpc/85xx: Add platform support for X-ES MPC85xx boards") Signed-off-by: Mi

[PATCH] powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader

2022-06-03 Thread Miaoqian Lin
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

[PATCH] powerpc/85xx: Fix reference leak in xes_mpc85xx_setup_arch

2022-06-03 Thread Miaoqian Lin
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: format:3038acf9091f ("powerpc/85xx: Add platform support for X-ES MPC85xx boards") Signed-off-by: Mi

[PATCH] powerpc/fsl_rio: Fix refcount leak in fsl_rio_setup

2022-05-12 Thread Miaoqian Lin
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. Fixes: abc3aeae3aaa ("fsl-rio: Add two ports and rapidio message units support") Signed-off-by: Miaoqian Lin

[PATCH] powerpc/xive: Fix refcount leak in xive_spapr_init

2022-05-12 Thread Miaoqian Lin
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: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller") Signed-off-by: Mi

[PATCH] ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe

2022-05-10 Thread Miaoqian Lin
of_find_i2c_device_by_node() takes a reference, In error paths, we should call put_device() to drop the reference to aviod refount leak. Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000") Signed-off-by: Miaoqian Lin --- sound/soc/fsl/imx-sgtl5

[PATCH] ASoC: imx-hdmi: Fix refcount leak in imx_hdmi_probe

2022-05-10 Thread Miaoqian Lin
s: f670b274f7f6 ("ASoC: imx-hdmi: add put_device() after of_find_device_by_node()") Signed-off-by: Miaoqian Lin --- sound/soc/fsl/imx-hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index 929f69b758af..ec149dc73938 100644 --- a

[PATCH] soc: fsl: qe: Fix refcount leak in par_io_of_config

2022-04-03 Thread Miaoqian Lin
e (QE) infrastructure") Signed-off-by: Miaoqian Lin --- drivers/soc/fsl/qe/qe_io.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_io.c b/drivers/soc/fsl/qe/qe_io.c index a5e2d0e5ab51..9f5f746bea88 100644 --- a/drivers/soc/fsl/qe/qe_io.c +++ b/drive

[PATCH] soc: fsl: rcpm: Fix refcount leak in copy_ippdexpcr1_setting

2022-03-09 Thread Miaoqian Lin
The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. Fixes: e95f287deed2 ("soc: fsl: handle RCPM errata A-008646 on SoC LS1021A") Signed-off-by: Mi