diff options
author | Peng Fan <peng.fan@nxp.com> | 2021-04-08 03:44:46 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-04-14 04:10:32 +0200 |
commit | 6e962bfe56b99843ab716dc8a9438039476c99e2 (patch) | |
tree | dc01b81d9852b4b1d05f711f0d957adb2709972f /drivers/remoteproc | |
parent | remoteproc: imx_rproc: fix build error without CONFIG_MAILBOX (diff) | |
download | linux-6e962bfe56b99843ab716dc8a9438039476c99e2.tar.xz linux-6e962bfe56b99843ab716dc8a9438039476c99e2.zip |
remoteproc: imx_rproc: add missing of_node_put
After of_parse_phandle, we need of_node_put to decrease the refcount
of the device_node.
Reported-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/1617846289-13496-2-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/imx_rproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 6d3207ccbaef..077413319f58 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -459,6 +459,8 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, return err; } + of_node_put(node); + if (b >= IMX7D_RPROC_MEM_MAX) break; |