Skip to content

Commit b1de5c7

Browse files
windhldavem330
authored andcommitted
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: 379d7ac ("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]>
1 parent fb63d21 commit b1de5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/mdio/mdio-thunder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static int thunder_mdiobus_pci_probe(struct pci_dev *pdev,
106106
if (i >= ARRAY_SIZE(nexus->buses))
107107
break;
108108
}
109+
fwnode_handle_put(fwn);
109110
return 0;
110111

111112
err_release_regions:

0 commit comments

Comments
 (0)