Commit 84cd75e9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Zheng Zengkai
Browse files

phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()



stable inclusion
from stable-5.10.20
commit 5a602158b885870e779ef702b9944cdf1498e85a
bugzilla: 50608

--------------------------------

[ Upstream commit 266df28f ]

This error path should return -EINVAL, but currently it returns
success.

Fixes: d09945ea ("phy: cadence-torrent: Check total lane count for all subnodes is within limit")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9s7Wxq+b6ls0q7o@mwanda


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent cedd9dba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment