diff options
author | Johan Hovold <johan@kernel.org> | 2016-11-28 19:24:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-29 23:17:02 -0500 |
commit | 0d8f3c67151faaa80e332c254372dca58fb2a9d4 (patch) | |
tree | f9a76fd26ee475b2258df059c386abb80099f089 /net/tipc | |
parent | a510887824171ad260cc4a2603396c6247fdd091 (diff) | |
download | talos-obmc-linux-0d8f3c67151faaa80e332c254372dca58fb2a9d4.tar.gz talos-obmc-linux-0d8f3c67151faaa80e332c254372dca58fb2a9d4.zip |
net: dsa: slave: fix of-node leak and phy priority
Make sure to drop the reference taken by of_parse_phandle() before
returning from dsa_slave_phy_setup().
Note that this also modifies the PHY priority so that any fixed-link
node is only parsed when no phy-handle is given, which is in accordance
with the common scheme for this.
Fixes: 0d8bcdd383b8 ("net: dsa: allow for more complex PHY setups")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions