Vincent Jardin
50b3c87e0e
net: mvpp2: fix NULL pointer dereference in mvpp2_phy_connect
...
Fix two NULL pointer dereferences in mvpp2_phy_connect():
1. port->phy_dev->dev is used in dev_warn() but
port->phy_dev is not assigned yet (assigned later at line below).
2. port->phy_dev->dev is used in dev_err() inside
the "if (!phy_dev)" block, which means phy_dev is NULL.
Both cases would cause a crash if the PHY detection fails or returns
a generic PHY. Use the already available 'dev' parameter instead.
Fixes: 9db60ee470 ("net: mvpp2: Convert netdev_xxx to dev_xxx")
Signed-off-by: Vincent Jardin <vjardin@free.fr >
2026-06-10 11:23:26 +02:00
..
2026-03-31 16:43:28 +02:00
2026-03-31 16:43:28 +02:00
2025-08-27 15:39:58 +08:00
2026-04-09 12:17:28 -06:00
2025-08-18 15:47:57 +02:00
2025-06-02 17:26:16 -06:00
2025-10-22 11:16:10 +02:00
2023-01-20 12:27:24 -05:00
2026-02-17 13:50:22 -06:00
2025-08-18 15:47:57 +02:00
2025-08-01 09:30:47 +02:00
2026-05-15 17:31:39 -03:00
2026-06-03 16:55:55 +02:00
2026-06-03 17:22:24 +02:00
2024-05-20 13:35:03 -06:00
2026-03-31 16:43:28 +02:00
2024-05-20 13:35:03 -06:00
2024-09-11 20:34:48 +08:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-06-13 16:30:46 -06:00
2026-06-03 16:55:55 +02:00
2025-08-18 15:47:58 +02:00
2026-06-03 16:55:55 +02:00
2025-10-22 14:28:33 +02:00
2025-01-23 18:51:26 -06:00
2024-05-20 13:35:03 -06:00
2026-04-07 11:32:59 -06:00
2024-10-29 16:25:53 -03:00
2024-09-03 09:12:00 -06:00
2024-09-03 09:12:00 -06:00
2024-09-03 09:12:00 -06:00
2026-03-10 10:07:03 -06:00
2024-09-03 09:12:00 -06:00
2025-09-16 15:24:30 +02:00
2026-03-10 10:07:03 -06:00
2026-02-06 16:42:45 +01:00
2025-08-08 15:59:58 +08:00
2026-04-07 11:32:56 -06:00
2025-12-01 13:54:04 +08:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2025-01-24 09:55:54 +08:00
2025-07-17 14:37:40 +08:00
2025-08-14 10:58:40 -06:00
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2024-10-27 17:03:40 -06:00
2024-07-26 07:49:36 -06:00
2024-07-26 07:49:36 -06:00
2024-05-20 13:35:03 -06:00
2026-06-03 16:55:55 +02:00
2026-02-17 13:50:22 -06:00
2025-11-29 17:06:34 -03:00
2025-11-04 12:39:46 -03:00
2026-05-15 17:31:40 -03:00
2026-04-21 20:49:39 -03:00
2026-05-15 17:31:40 -03:00
2026-04-21 20:49:39 -03:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-08-01 09:30:47 +02:00
2024-09-11 20:34:43 +08:00
2024-07-22 10:53:05 -06:00
2023-02-10 13:41:07 -05:00
2026-02-17 13:50:22 -06:00
2024-03-26 19:58:26 -04:00
2025-08-01 09:30:47 +02:00
2024-05-20 13:35:03 -06:00
2026-05-15 17:31:40 -03:00
2025-08-18 15:47:58 +02:00
2024-07-22 10:53:05 -06:00
2024-10-27 10:19:44 -06:00
2022-11-28 10:25:17 -05:00
2026-05-06 11:07:22 +02:00
2026-05-06 11:07:22 +02:00
2025-09-08 09:16:18 -06:00
2026-03-12 12:49:35 +01:00
2024-07-03 14:42:01 -06:00
2024-05-20 13:35:03 -06:00
2025-01-01 14:35:54 -06:00
2025-09-30 20:32:15 +02:00
2022-04-10 08:44:12 +03:00
2024-05-20 13:35:03 -06:00
2026-01-15 11:09:28 +01:00
2026-03-12 12:49:35 +01:00
2025-10-22 11:16:10 +02:00
2024-07-22 10:53:05 -06:00
2022-04-10 08:44:13 +03:00
2024-05-20 13:35:03 -06:00
2025-08-18 15:47:57 +02:00
2026-01-21 12:05:15 -06:00
2022-12-22 10:31:48 -05:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2026-06-10 11:23:26 +02:00
2025-05-29 08:30:24 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-12-23 15:35:34 +01:00
2026-03-31 16:54:49 +02:00
2024-10-27 17:03:40 -06:00
2026-03-31 16:54:11 +02:00
2025-07-24 13:30:20 -06:00
2026-02-17 13:50:22 -06:00
2026-04-27 11:26:40 -06:00
2025-07-10 19:26:56 +02:00
2025-07-10 19:26:55 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-01-29 22:35:02 -05:00
2026-04-07 11:32:56 -06:00
2025-10-27 11:12:56 +00:00
2024-05-20 13:35:03 -06:00
2026-06-03 16:55:55 +02:00
2024-05-20 13:35:03 -06:00
2026-04-23 11:49:48 +02:00
2025-07-24 08:54:16 +02:00
2023-07-21 09:00:38 +02:00
2024-05-20 13:35:03 -06:00
2026-04-23 11:52:18 +02:00