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-28 17:03:32 -04:00
2021-09-30 08:08:56 -04:00
2022-05-03 18:33:29 -04:00
2022-06-28 17:03:32 -04:00
2022-07-07 14:01:09 -04:00
2022-02-11 09:00:47 -05:00
2022-06-17 16:27:05 +08:00
2022-07-21 10:14:04 +02:00
2022-07-26 02:30:56 -06:00
2022-06-24 14:16:00 +02:00
2022-06-22 21:30:05 -04:00
2022-08-04 16:18:48 -04:00
2021-10-05 08:50:15 -04:00
2022-08-04 16:18:47 -04:00
2022-07-25 13:02:04 -04:00
2022-08-04 16:18:47 -04:00
2022-07-26 08:36:10 +02:00
2022-07-26 09:34:21 +02:00
2022-06-23 12:58:19 -04:00
2022-08-04 15:32:20 -04:00
2022-01-13 07:57:49 -05:00
2022-07-19 13:46:28 +02:00
2022-02-10 16:44:23 -05:00
2022-07-25 09:38:47 -04:00
2022-07-08 10:56:45 -04:00
2022-07-26 08:36:25 +02:00
2022-08-04 16:18:47 -04:00
2022-07-27 15:19:42 +09:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-08-08 10:50:20 -04:00
2022-06-23 08:24:49 -04:00
2022-07-05 17:05:00 -04:00
2022-07-25 09:38:47 -04:00
2022-07-29 10:02:43 +02:00
2022-07-27 13:04:34 +09:00
2022-08-04 13:59:59 -04:00
2021-11-09 17:18:23 +05:30
2022-07-25 13:02:04 -04:00
2021-10-05 08:50:15 -04:00
2022-02-08 11:00:03 -05:00
2022-07-26 08:27:15 +02:00
2022-08-02 23:50:02 +03:00
2022-07-21 10:14:04 +02:00
2022-04-09 21:06:31 +02:00
2022-07-26 08:23:55 +02:00
2022-07-06 14:30:51 -04:00
2022-07-08 09:05:47 -04:00
2022-07-26 09:34:21 +02:00
2021-10-31 08:46:44 -04:00
2022-07-01 14:57:14 +08:00
2022-06-06 18:01:21 -04:00
2021-09-30 09:08:16 -04:00
2022-06-27 10:15:50 -04:00
2022-08-02 23:50:02 +03:00
2022-05-03 21:39:22 +02:00
2022-07-25 15:08:23 +02:00
2022-07-11 14:58:57 -04:00
2022-06-08 09:24:04 -04:00
2021-10-01 21:08:18 -04:00
2022-07-22 20:48:28 -04:00
2022-08-04 13:59:59 -04:00
2022-06-23 12:58:18 -04:00
2022-07-26 11:29:01 +02:00