Patch "phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     phy-cadence-torrent-fix-error-code-in-cdns_torrent_p.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 07ad6f2ad81c3984c01a44212a0233c2ded88f29
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Thu Dec 17 14:04:59 2020 +0300

    phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()
    
    [ Upstream commit 266df28f9ac16b0dff553d78bc3fb1c084b96b9d ]
    
    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@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/X9s7Wxq+b6ls0q7o@mwanda
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c
index f310e15d94cbc..591a15834b48f 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;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux