aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorRomain Gantois <[email protected]>2024-05-21 14:44:11 +0200
committerPaolo Abeni <[email protected]>2024-05-23 12:11:09 +0200
commitb31c7e78086127a7fcaa761e8d336ee855a920c6 (patch)
tree85d0ff5213c596a6ab68ea75f3aa8341018d89cf /net/ipv4/tcp_output.c
parent91e61dd7a0af660408e87372d8330ceb218be302 (diff)
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: [email protected] Signed-off-by: Romain Gantois <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: MD Danish Anwar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions