]> git.itanic.dy.fi Git - linux-stable/commit
remoteproc: imx_dsp_rproc: Call of_node_put() on iteration error
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 20 Mar 2023 22:18:26 +0000 (16:18 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 3 Apr 2023 16:52:41 +0000 (10:52 -0600)
commite0e01de8ee146986872e54e8365f4b4654819412
treedf8abbd2ae37e30e4b313703765ad3c8efce7ce8
parent5ef074e805ecfd9a16dbb7b6b88bbfa8abad7054
remoteproc: imx_dsp_rproc: Call of_node_put() on iteration error

Function of_phandle_iterator_next() calls of_node_put() on the last
device_node it iterated over, but when the loop exits prematurely it has
to be called explicitly.

Fixes: ec0e5549f358 ("remoteproc: imx_dsp_rproc: Add remoteproc driver for DSP on i.MX")
Cc: stable@vger.kernel.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20230320221826.2728078-6-mathieu.poirier@linaro.org
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c