Thread (4 messages) 4 messages, 4 authors, 2026-05-07

Re: [PATCH net v2] net: rtsn: fix mdio_node leak in rtsn_mdio_alloc()

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-05-05 12:35:35
Also in: linux-renesas-soc, lkml

On Tue, May 05, 2026 at 06:02:36PM +0530, Shitalkumar Gandhi wrote:
of_get_child_by_name() takes a reference. The rtsn_reset() and
rtsn_change_mode() failure paths jump to out_free_bus and leak
mdio_node.

Add out_put_node to drop it before falling through.

Fixes: b0d3969d2b4d ("net: ethernet: rtsn: Add support for Renesas Ethernet-TSN")
Signed-off-by: Shitalkumar Gandhi <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help