]> Git Repo - linux.git/commitdiff
net: mdio: thunder: Add missing fwnode_handle_put()
authorLiang He <[email protected]>
Wed, 22 Mar 2023 06:20:57 +0000 (14:20 +0800)
committerDavid S. Miller <[email protected]>
Thu, 23 Mar 2023 08:46:55 +0000 (08:46 +0000)
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/mdio/mdio-thunder.c

index 3847ee92c1096c1569442acea2120c279ad2dc60..6067d96b2b7bf030a09a67bfad7490fea60d219f 100644 (file)
@@ -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:
This page took 0.056482 seconds and 4 git commands to generate.