summaryrefslogtreecommitdiff
path: root/drivers/net/phy/aquantia_main.c
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-03-24 02:24:07 +0300
committerDavid S. Miller <davem@davemloft.net>2019-03-26 21:26:55 +0300
commit6146dd453e235c487d85ae4dc6cc08978a1c890f (patch)
treefc04d26f6cc2f095c3fccfa781931a8920fb0eb6 /drivers/net/phy/aquantia_main.c
parent9675db398b15f74abd6e7ff4f445dd9f79060849 (diff)
downloadlinux-6146dd453e235c487d85ae4dc6cc08978a1c890f.tar.xz
net: dsa: Avoid null pointer when failing to connect to PHY
When phylink_of_phy_connect fails, dsa_slave_phy_setup tries to save the day by connecting to an alternative PHY, none other than a PHY on the switch's internal MDIO bus, at an address equal to the port's index. However this does not take into consideration the scenario when the switch that failed to probe an external PHY does not have an internal MDIO bus at all. Fixes: aab9c4067d23 ("net: dsa: Plug in PHYLINK support") Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/aquantia_main.c')
0 files changed, 0 insertions, 0 deletions