[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240612-d3218ce9809ada564606999e-pchelkin@ispras.ru>
Date: Wed, 12 Jun 2024 11:32:17 +0300
From: Fedor Pchelkin <pchelkin@...ras.ru>
To: Mathieu Poirier <mathieu.poirier@...aro.org>
Cc: Aleksandr Mishin <amishin@...rgos.ru>, imx@...ts.linux.dev,
lvc-project@...uxtesting.org, Shawn Guo <shawnguo@...nel.org>,
Bjorn Andersson <andersson@...nel.org>, linux-remoteproc@...r.kernel.org, linux-kernel@...r.kernel.org,
Oleksij Rempel <o.rempel@...gutronix.de>, Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, Sascha Hauer <s.hauer@...gutronix.de>,
linux-arm-kernel@...ts.infradead.org, Peng Fan <peng.fan@....com>
Subject: Re: [lvc-project] [PATCH] remoteproc: imx_rproc: Adjust phandle
parsing issue while remapping optional addresses in imx_rproc_addr_init()
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?
Powered by blists - more mailing lists