mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()
[ Upstream commit266df28f9a] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
95fdc1ea3b
commit
5a602158b8
|
|
@ -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