linux/drivers/net/ethernet/ti/icssg
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: 128d5874c0 ("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
..
icss_iep.c
icss_iep.h
icssg_classifier.c net: ti: icssg-prueth: Add functions to configure SR1.0 packet classifier 2024-04-09 09:47:29 +02:00
icssg_common.c net: ti: icssg_prueth: Add SW TX / RX Coalescing based on hrtimers 2024-05-01 18:38:47 -07:00
icssg_config.c net: ti: icssg-prueth: Adjust IPG configuration for SR1.0 2024-04-09 09:47:29 +02:00
icssg_config.h net: ti: icssg-prueth: Add SR1.0-specific configuration bits 2024-04-09 09:47:29 +02:00
icssg_ethtool.c net: ti: icssg_prueth: Add SW TX / RX Coalescing based on hrtimers 2024-05-01 18:38:47 -07:00
icssg_mii_cfg.c
icssg_mii_rt.h
icssg_prueth.c net: ti: icssg_prueth: Fix NULL pointer dereference in prueth_probe() 2024-05-23 12:11:09 +02:00
icssg_prueth.h net: ti: icssg_prueth: Add SW TX / RX Coalescing based on hrtimers 2024-05-01 18:38:47 -07:00
icssg_prueth_sr1.c net: ti: icssg-prueth: Add ICSSG Ethernet driver for AM65x SR1.0 platforms 2024-04-09 09:47:29 +02:00
icssg_queues.c
icssg_stats.c
icssg_stats.h
icssg_switch_map.h