aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2022-05-17 15:16:39 -0700
committerTom Rini <trini@konsulko.com>2022-08-08 10:50:20 -0400
commitf44bf737841bb90a92b6c7eca9a8ee4075febe57 (patch)
tree2ed698d70b8f429af7641ad6468a62482c1d9999 /drivers/net/phy/phy.c
parent52503d813578e1d74b8dbac134f06c52929c7df8 (diff)
net: ftgmac100: use bus name in mdio error messages
Previously we'd been using a device name retrieved via ftgmac100_data->phydev, but the mdio read/write functions may be called before that member is initialized in ftgmac100_phy_init(), leading to a NULL pointer dereference while printing the error message issued if the mdio access fails. We can instead use bus->name, which is already available at that point. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Fixes: 538e75d3fc54 ("net: ftgmac100: add MDIO bus and phylib support") Reviewed-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions