Files
u-boot/drivers/net
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
2025-08-27 15:39:58 +08:00
2026-06-03 16:55:55 +02:00
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2026-06-03 16:55:55 +02:00
2022-11-28 10:25:17 -05:00
2026-01-21 12:05:15 -06:00
2022-12-22 10:31:48 -05:00
2026-03-31 16:54:11 +02:00
2026-04-27 11:26:40 -06:00
2025-07-10 19:26:55 +02:00
2024-01-29 22:35:02 -05:00