Re: [PATCH] net: ethernet: ti: netcp_core: fix device_node refcount leak in netcp_probe()

Andrew Lunn <[email protected]>
Newsgroups gmane.linux.network
Message-ID <[email protected]>
On Thu, Aug 13, 2026 at 04:40:58PM +0530, Manush Prajwal wrote:
> When netcp_create_interface() fails for a given child node,
> netcp_probe() jumps to probe_quit_interface, which releases the
> "interfaces" parent node but never the "child" node that the
> for_each_available_child_of_node() loop was iterating on.

Would for_each_available_child_of_node_scoped() work here?

      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.