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:
3ae30f4
)
net: phy: fixed_phy: fix of_node leak in fixed_phy_unregister
author
Johan Hovold
<johan@kernel.org>
Wed, 16 Nov 2016 14:20:38 +0000
(15:20 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 17 Nov 2016 17:05:05 +0000
(12:05 -0500)
Make sure to drop the of_node reference taken in fixed_phy_register()
when deregistering a PHY.
Fixes:
a75951217472
("net: phy: extend fixed driver with
fixed_phy_register()")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/phy/fixed_phy.c
b/drivers/net/phy/fixed_phy.c
index c649c101bbaba97ec44255b9ee1e7a878c26ada5..eb51672106811e35ee0a7b3f0578560e16bc3670 100644
(file)
--- a/
drivers/net/phy/fixed_phy.c
+++ b/
drivers/net/phy/fixed_phy.c
@@
-279,7
+279,7
@@
EXPORT_SYMBOL_GPL(fixed_phy_register);
void fixed_phy_unregister(struct phy_device *phy)
{
phy_device_remove(phy);
-
+ of_node_put(phy->mdio.dev.of_node);
fixed_phy_del(phy->mdio.addr);
}
EXPORT_SYMBOL_GPL(fixed_phy_unregister);