diff options
author | Siddharth Vadapalli <[email protected]> | 2023-01-18 16:51:36 +0530 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-01-19 18:57:19 -0800 |
commit | 854617f52ab4241896190abac7688eaaf6774451 (patch) | |
tree | 117a82737d081380d78fd91fbbee7021087c5d62 /tools/perf/scripts/python/syscall-counts.py | |
parent | a76e88c2942575bc43ea88d0f05d245b26859130 (diff) |
net: ethernet: ti: am65-cpsw: Handle -EPROBE_DEFER for Serdes PHY
In the am65_cpsw_init_serdes_phy() function, the error handling for the
call to the devm_of_phy_get() function misses the case where the return
value of devm_of_phy_get() is ERR_PTR(-EPROBE_DEFER). Proceeding without
handling this case will result in a crash when the "phy" pointer with
this value is dereferenced by phy_init() in am65_cpsw_enable_phy().
Fix this by adding appropriate error handling code.
Reported-by: Geert Uytterhoeven <[email protected]>
Fixes: dab2b265dd23 ("net: ethernet: ti: am65-cpsw: Add support for SERDES configuration")
Suggested-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Siddharth Vadapalli <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions