diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-12-17 14:04:59 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-01-13 17:31:02 +0530 |
commit | 266df28f9ac16b0dff553d78bc3fb1c084b96b9d (patch) | |
tree | b90f0f2ef92a2bc9a6cebb7a990502a35b52c881 /drivers/phy | |
parent | 915f1d230e5292bc2156a9997bcb19d9e632f10b (diff) |
phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()
This error path should return -EINVAL, but currently it returns
success.
Fixes: d09945eacad0 ("phy: cadence-torrent: Check total lane count for all subnodes is within limit")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9s7Wxq+b6ls0q7o@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/cadence/phy-cadence-torrent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index f310e15d94cb..591a15834b48 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -2298,6 +2298,7 @@ static int cdns_torrent_phy_probe(struct platform_device *pdev) if (total_num_lanes > MAX_NUM_LANES) { dev_err(dev, "Invalid lane configuration\n"); + ret = -EINVAL; goto put_lnk_rst; } |