Re: [PATCH] net: ethernet: renesas: rswitch: fix device_node refcount leak in rswitch_get_port_node()

Andrew Lunn <[email protected]>
Newsgroups org.kernel.vger.linux-renesas-soc,org.kernel.vger.netdev
Message-ID <[email protected]>
On Thu, Aug 13, 2026 at 04:41:21PM +0530, Manush Prajwal wrote:
> On an of_property_read_u32() failure, rswitch_get_port_node() sets
> port to NULL and jumps to the out label before releasing the
> reference the for_each_available_child_of_node()

Looks like another place where _scoped would work.

      Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.