linux/drivers/net/ethernet/ti
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
..
icssg net: ti: icssg_prueth: Fix NULL pointer dereference in prueth_probe() 2024-05-23 12:11:09 +02:00
am65-cpsw-ethtool.c net: ethernet: ti: am65-cpsw/ethtool: Enable RX HW timestamp only for PTP packets 2024-04-23 12:07:24 +02:00
am65-cpsw-nuss.c Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 2024-04-24 20:05:31 -07:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw: Add minimal XDP support 2024-04-15 13:18:18 +01:00
am65-cpsw-qos.c net: ethernet: ti: am65-cpsw-qos: Add support to taprio for past base_time 2024-04-29 06:19:16 +01:00
am65-cpsw-qos.h net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support 2023-12-23 01:01:19 +00:00
am65-cpsw-switchdev.c
am65-cpsw-switchdev.h
am65-cpts.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-25 12:41:37 -07:00
am65-cpts.h net: ethernet: ti: am65-cpsw/ethtool: Enable RX HW timestamp only for PTP packets 2024-04-23 12:07:24 +02:00
cpsw_ale.c
cpsw_ale.h
cpsw_ethtool.c ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
cpsw_new.c devlink: extend devlink_param *set pointer 2024-04-22 13:05:19 -07:00
cpsw_priv.c net: ethernet: ti: cpsw: flower: validate control flags 2024-04-24 19:59:19 -07:00
cpsw_priv.h ethtool: replace struct ethtool_eee with a new struct ethtool_keee on kernel side 2024-01-31 12:30:47 +00:00
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c
cpsw_switchdev.h
cpsw-common.c net: fill in MODULE_DESCRIPTION()s for cpsw-common 2024-01-29 12:12:51 +00:00
cpsw-phy-sel.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
cpsw.c net: ethernet: ti: cpsw: enable mac_managed_pm to fix mdio 2024-02-08 11:33:14 +01:00
cpsw.h
cpts.c ethernet: cpts: fix function pointer cast warnings 2024-02-14 12:50:53 +00:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c net: ethernet: davinci_emac: Use MAC Address from Device Tree 2023-10-24 11:26:08 +02:00
davinci_mdio.c net: ethernet: ti: davinci_mdio: Update K3 SoCs list for errata i2329 2023-12-04 18:21:33 -08:00
k3-cppi-desc-pool.c net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool 2024-04-15 13:18:18 +01:00
k3-cppi-desc-pool.h net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool 2024-04-15 13:18:18 +01:00
Kconfig net: ti: icssg-prueth: Add ICSSG Ethernet driver for AM65x SR1.0 platforms 2024-04-09 09:47:29 +02:00
Makefile net: ti: icssg-prueth: Add ICSSG Ethernet driver for AM65x SR1.0 platforms 2024-04-09 09:47:29 +02:00
netcp_core.c net: ethernet: ti: Convert to platform remove callback returning void 2023-09-20 09:06:41 +01:00
netcp_ethss.c net: netcp: replace deprecated strncpy with strscpy 2023-10-16 16:14:09 -07:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h net: ethernet: ti: Remove unused declarations 2023-08-22 10:33:21 -07:00
tlan.c
tlan.h