Files
u-boot/drivers
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
..
2022-04-25 09:25:00 +02:00
2022-06-24 14:16:00 +02:00
2021-10-05 08:50:15 -04:00
2022-08-04 16:18:47 -04:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-08-02 23:50:02 +03:00
2022-05-03 21:39:22 +02:00
2022-07-11 14:58:57 -04:00
2021-10-01 21:08:18 -04:00