Skip to content

Commit 60e71ab

Browse files
jhovolddavem330
authored andcommitted
net: cpsw: add missing of_node_put
Add missing of_node_put to avoid kref leak. Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6954cc1 commit 60e71ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
18711871
mdio_node = of_find_node_by_phandle(be32_to_cpup(parp));
18721872
phyid = be32_to_cpup(parp+1);
18731873
mdio = of_find_device_by_node(mdio_node);
1874+
of_node_put(mdio_node);
18741875
if (!mdio) {
18751876
pr_err("Missing mdio platform device\n");
18761877
return -EINVAL;

0 commit comments

Comments
 (0)