Files
u-boot/drivers/net
Zev Weiss f44bf73784 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: 538e75d3fc ("net: ftgmac100: add MDIO bus and phylib support")
Reviewed-by: Cédric Le Goater <clg@kaod.org>
2022-08-08 10:50:20 -04:00
..
2021-02-24 16:51:49 -05:00
2021-09-28 18:50:56 +03:00
2022-07-26 11:29:01 +02:00
2022-06-03 11:15:24 -04:00
2022-08-08 10:50:20 -04:00
2022-03-25 12:01:15 +00:00
2022-05-04 07:05:51 +02:00
2021-02-15 10:16:24 -05:00
2022-06-06 12:09:12 -04:00