On Tue, 11. Jun 10:45, Mathieu Poirier wrote: > On Mon, Jun 10, 2024 at 08:36:19PM +0300, Fedor Pchelkin wrote: > > Btw, there is a "rsc-table" node->name check in the the end of the loop > > body. It was added recently with commit 5e4c1243071d ("remoteproc: > > imx_rproc: support remote cores booted before Linux Kernel"). Seems to me > > it forgot that of_node_put() is called way before that. > > > > I agree. > > > Also commit 61afafe8b938 ("remoteproc: imx_rproc: Fix refcount leak in > > imx_rproc_addr_init") was dealing with the last of_node_put() call here > > but it's still not in the right place I'd say. > > > > You mean becaue of node->name being used after the last of_node_put() or is Yes, this one. Only that node->name is used after the last of_node_put(). > there something else?