forked from Minki/linux
phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()
This error path should return -EINVAL, but currently it returns
success.
Fixes: d09945eaca
("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>
This commit is contained in:
parent
915f1d230e
commit
266df28f9a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user