]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: imx_rproc: Fix refcount mistake in imx_rproc_addr_init
authorAleksandr Mishin <amishin@t-argos.ru>
Wed, 12 Jun 2024 13:17:14 +0000 (16:17 +0300)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 17 Jun 2024 14:39:00 +0000 (08:39 -0600)
commitdce68a49be26abf52712e0ee452a45fa01ab4624
treea9c0d7553b95ef82e9d9917a537a0c5945d70203
parent8d3739dbba3ba35c43984d762e7cdcca031a8fcf
remoteproc: imx_rproc: Fix refcount mistake in imx_rproc_addr_init

In imx_rproc_addr_init() strcmp() is performed over the node after the
of_node_put() is performed over it.
Fix this error by moving of_node_put() calls.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 5e4c1243071d ("remoteproc: imx_rproc: support remote cores booted before Linux Kernel")
Cc: stable@vger.kernel.org
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Link: https://lore.kernel.org/r/20240612131714.12907-1-amishin@t-argos.ru
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c