summaryrefslogtreecommitdiffstats
path: root/drivers/net/mdio
diff options
context:
space:
mode:
authorLiang He <windhl@126.com>2023-03-22 07:20:57 +0100
committerDavid S. Miller <davem@davemloft.net>2023-03-23 09:46:55 +0100
commitb1de5c78ebe9858ccec9d49af2f76724f1d47e3e (patch)
tree52d1b7ecc0abd70c880ee9a0e9155579934ed72a /drivers/net/mdio
parentMerge tag 'mlx5-fixes-2023-03-21' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-b1de5c78ebe9858ccec9d49af2f76724f1d47e3e.tar.xz
linux-b1de5c78ebe9858ccec9d49af2f76724f1d47e3e.zip
net: mdio: thunder: Add missing fwnode_handle_put()
In device_for_each_child_node(), we should add fwnode_handle_put() when break out of the iteration device_for_each_child_node() as it will automatically increase and decrease the refcounter. Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.") Signed-off-by: Liang He <windhl@126.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio')
-rw-r--r--drivers/net/mdio/mdio-thunder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mdio/mdio-thunder.c b/drivers/net/mdio/mdio-thunder.c
index 3847ee92c109..6067d96b2b7b 100644
--- a/drivers/net/mdio/mdio-thunder.c
+++ b/drivers/net/mdio/mdio-thunder.c
@@ -106,6 +106,7 @@ static int thunder_mdiobus_pci_probe(struct pci_dev *pdev,
if (i >= ARRAY_SIZE(nexus->buses))
break;
}
+ fwnode_handle_put(fwn);
return 0;
err_release_regions: