]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe
authorErick Karanja <karanja99erick@gmail.com>
Thu, 2 Oct 2025 17:46:17 +0000 (20:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:08 +0000 (16:23 +0200)
commit95c25d7a419db4fdbfb5cb0d69125fa8cd003253
tree56f14edd4f49bf5c7a2cca8afe038487ae3126f8
parent643a94b0cf767325e953591c212be2eb826b9d7f
net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe

[ Upstream commit 521405cb54cd2812bbb6dedd5afc14bca1e7e98a ]

Add missing of_node_put call to release device node tbi obtained
via for_each_child_of_node.

Fixes: afae5ad78b342 ("net/fsl_pq_mdio: streamline probing of MDIO nodes")
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Link: https://patch.msgid.link/20251002174617.960521-1-karanja99erick@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fsl_pq_mdio.c