projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6954cc1
)
net: cpsw: add missing of_node_put
author
Johan Hovold
<jhovold@gmail.com>
Thu, 8 May 2014 08:09:24 +0000
(10:09 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 9 May 2014 19:51:20 +0000
(15:51 -0400)
Add missing of_node_put to avoid kref leak.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/ti/cpsw.c
b/drivers/net/ethernet/ti/cpsw.c
index db9360cd861cf6cc9e7c2624deaaf288b22fed64..c331b7ebc8124585f989d6fb3dcdbaf8a3d7d3ed 100644
(file)
--- a/
drivers/net/ethernet/ti/cpsw.c
+++ b/
drivers/net/ethernet/ti/cpsw.c
@@
-1871,6
+1871,7
@@
static int cpsw_probe_dt(struct cpsw_platform_data *data,
mdio_node = of_find_node_by_phandle(be32_to_cpup(parp));
phyid = be32_to_cpup(parp+1);
mdio = of_find_device_by_node(mdio_node);
+ of_node_put(mdio_node);
if (!mdio) {
pr_err("Missing mdio platform device\n");
return -EINVAL;