Skip to content
Commit 61afafe8 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Mathieu Poirier
Browse files

remoteproc: imx_rproc: Fix refcount leak in imx_rproc_addr_init



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: 6e962bfe ("remoteproc: imx_rproc: add missing of_node_put")
Fixes: a0ff4aa6 ("remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220512045558.7142-1-linmq006@gmail.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 2d1ea19f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment