diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-28 19:25:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 05:17:02 +0100 |
commit | 14cab6f6510c498c2fd55d4fd6063a91b477d2ff (patch) | |
tree | ca56ccbb9f3e290dccd565385aaef923ac7cf09a /net | |
parent | net: ethernet: dwc_eth_qos: fix fixed-link phydev leaks (diff) | |
download | linux-14cab6f6510c498c2fd55d4fd6063a91b477d2ff.tar.xz linux-14cab6f6510c498c2fd55d4fd6063a91b477d2ff.zip |
net: ethernet: ti: davinci_emac: fix fixed-link phydev and of-node leaks
Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on probe errors and on driver unbind.
Also remember to put the of-node reference on probe errors.
Fixes: 1bb6aa56bb38 ("net: davinci_emac: Add support for fixed-link
PHY")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions