diff options
author | Uwe Kleine-König <[email protected]> | 2014-08-07 22:53:40 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-08-07 16:02:58 -0700 |
commit | 9518259ffc87328676bf2c2041348c5181856f96 (patch) | |
tree | 7b8c4745c68b3f65086f014a1772fdf6b4331312 /lib/test-string_helpers.c | |
parent | abac0d3f80ec8cbec5589bb2cebec188bf5f03e0 (diff) |
net: bcmgenet: fix reference counting for phy node
For the fixed phy setup make sure to not overwrite a valid value of
phy_dn (that is holding a reference to a phy-handle) and also acquire a
reference to the MAC node to consistently return with the phy_dn pointer
holding a reference.
Also add the corresponding of_node_put in the error path and the remove
function.
Fixes: 9abf0c2b717a ("net: bcmgenet: use the new fixed PHY helpers")
Fixes: aa09677cba42 ("net: bcmgenet: add MDIO routines")
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions