linux-stable/drivers/remoteproc
Miaoqian Lin bd4771ba2c remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region
[ Upstream commit 07a5dcc4be ]

The device_node pointer is returned by of_parse_phandle() or
of_get_child_by_name() with refcount incremented.
We should use of_node_put() on it when done.

This function only call of_node_put(node) when of_address_to_resource
succeeds, missing error cases.

Fixes: 278d744c46 ("remoteproc: qcom: Fix potential device node leaks")
Fixes: 051fb70fd4 ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220308064522.13804-1-linmq006@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:47 +02:00
..
da8xx_remoteproc.c
imx_rproc.c remoteproc: imx_rproc: Fix a resource leak in the remove function 2022-01-27 11:05:10 +01:00
ingenic_rproc.c
Kconfig remoteproc: imx-rproc: Fix IMX_REMOTEPROC configuration 2021-06-10 11:29:48 -05:00
keystone_remoteproc.c
Makefile
mtk_common.h
mtk_scp.c
mtk_scp_ipi.c
omap_remoteproc.c
omap_remoteproc.h
pru_rproc.c remoteproc: pru: Add support for various PRU cores on K3 AM64x SoCs 2021-06-23 13:39:20 -05:00
pru_rproc.h
qcom_common.c
qcom_common.h
qcom_pil_info.c remoteproc: qcom: pil_info: Don't memcpy_toio more than is provided 2022-01-20 09:13:13 +01:00
qcom_pil_info.h
qcom_q6v5.c remoteproc: qcom_q6v5: Use devm_qcom_smem_state_get() to fix missing put() 2021-06-23 13:35:18 -05:00
qcom_q6v5.h
qcom_q6v5_adsp.c remoteproc: qcom: Fix missing of_node_put in adsp_alloc_memory_region 2022-04-08 14:23:47 +02:00
qcom_q6v5_mss.c remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region 2022-04-08 14:23:47 +02:00
qcom_q6v5_pas.c remoteproc: qcom: pas: Add missing power-domain "mxc" for CDSP 2022-01-20 09:13:14 +01:00
qcom_q6v5_wcss.c
qcom_sysmon.c
qcom_wcnss.c remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region 2022-04-08 14:23:47 +02:00
qcom_wcnss.h remoteproc: qcom: wcnss: Fix race with iris probe 2021-07-28 14:57:30 -05:00
qcom_wcnss_iris.c remoteproc: qcom: wcnss: Fix race with iris probe 2021-07-28 14:57:30 -05:00
remoteproc_cdev.c remoteproc: core: Fix cdev remove and rproc del 2021-06-23 13:41:44 -05:00
remoteproc_core.c remoteproc: Fix a memory leak in an error handling path in 'rproc_handle_vdev()' 2021-11-18 19:17:01 +01:00
remoteproc_coredump.c remoteproc: Fix the wrong default value of is_iomem 2021-11-18 19:17:18 +01:00
remoteproc_debugfs.c remoteproc: Fix count check in rproc_coredump_write() 2022-04-08 14:22:52 +02:00
remoteproc_elf_helpers.h remoteproc: fix an typo in fw_elf_get_class code comments 2021-07-28 14:57:30 -05:00
remoteproc_elf_loader.c remoteproc: Fix the wrong default value of is_iomem 2021-11-18 19:17:18 +01:00
remoteproc_internal.h
remoteproc_sysfs.c
remoteproc_virtio.c remoteproc: Fix various kernel-doc warnings 2021-05-27 22:07:43 -05:00
st_remoteproc.c
st_slim_rproc.c
stm32_rproc.c remoteproc: stm32: fix mbox_send_message call 2021-06-23 13:45:20 -05:00
ti_k3_dsp_remoteproc.c
ti_k3_r5_remoteproc.c remoteproc: k3-r5: Fix an error message 2021-05-27 22:36:55 -05:00
ti_sci_proc.h
wkup_m3_rproc.c