mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
remoteproc: imx_rproc: Fix refcount leak in imx_rproc_addr_init
[ Upstream commit61afafe8b9] of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not needed anymore. This function has two paths missing of_node_put(). Fixes:6e962bfe56("remoteproc: imx_rproc: add missing of_node_put") Fixes:a0ff4aa6f0("remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Link: https://lore.kernel.org/r/20220512045558.7142-1-linmq006@gmail.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
55404cf492
commit
16da9f84e2
1 changed files with 4 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue