Romain Gantois b31c7e7808 net: ti: icssg_prueth: Fix NULL pointer dereference in prueth_probe()
In the prueth_probe() function, if one of the calls to emac_phy_connect()
fails due to of_phy_connect() returning NULL, then the subsequent call to
phy_attached_info() will dereference a NULL pointer.

Check the return code of emac_phy_connect and fail cleanly if there is an
error.

Fixes: 128d5874c082 ("net: ti: icssg-prueth: Add ICSSG ethernet driver")
Cc: stable@vger.kernel.org
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://lore.kernel.org/r/20240521-icssg-prueth-fix-v1-1-b4b17b1433e9@bootlin.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-05-23 12:11:09 +02:00
..
2024-05-16 09:14:50 -07:00
2024-05-14 18:25:53 -07:00
2024-05-17 09:05:46 -07:00
2024-05-13 13:03:54 -07:00
2024-05-16 08:56:49 -07:00
2024-05-14 19:42:24 -07:00
2024-03-07 21:52:03 +00:00
2024-05-17 08:53:47 -07:00
2024-05-17 09:05:46 -07:00
2024-05-16 08:50:32 -07:00
2024-05-14 19:42:24 -07:00
2024-05-15 14:32:27 -07:00
2024-05-15 14:28:56 -07:00
2024-05-17 08:53:47 -07:00
2024-05-14 18:57:22 -07:00
2024-05-15 10:02:36 -07:00
2024-05-14 15:07:07 -07:00
2024-05-16 08:44:19 -07:00
2024-04-11 16:23:56 -07:00
2024-05-14 15:03:19 -07:00
2024-05-17 08:53:47 -07:00
2024-05-14 14:36:09 -07:00
2024-05-14 10:01:29 -07:00
2024-05-17 09:05:46 -07:00
2024-05-14 19:42:24 -07:00
2024-05-16 08:45:44 -07:00
2024-05-14 18:25:53 -07:00
2024-05-13 14:14:05 -07:00
2024-05-16 08:56:49 -07:00
2024-05-16 09:04:52 -07:00
2024-05-13 13:03:54 -07:00
2024-05-17 17:27:49 -07:00
2024-05-08 09:37:58 -07:00
2024-05-15 14:46:43 -07:00
2024-05-14 15:07:07 -07:00
2024-05-16 09:14:50 -07:00
2024-04-22 18:30:39 +02:00
2024-05-14 19:42:24 -07:00
2024-05-14 14:36:09 -07:00
2024-03-21 10:37:39 -07:00
2024-03-21 17:16:46 -07:00
2024-05-14 19:42:24 -07:00
2024-05-14 18:25:53 -07:00
2024-03-21 15:18:18 -07:00
2024-05-14 14:41:01 -07:00
2024-05-14 14:41:01 -07:00
2024-05-16 08:45:44 -07:00
2024-05-14 18:25:53 -07:00
2024-04-29 22:29:44 +02:00
2024-05-14 13:31:24 -07:00
2024-05-15 12:34:46 -07:00
2024-05-14 18:25:53 -07:00
2024-04-11 16:23:56 -07:00
2024-05-14 18:25:53 -07:00
2024-04-22 17:07:13 -04:00
2024-05-14 13:31:24 -07:00
2024-03-17 12:06:10 -07:00
2024-03-19 08:48:09 -07:00
2024-04-29 16:45:53 +02:00