Patch "RDMA/erdma: Defer probing if netdevice can not be found" has been added to the 6.1-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

    RDMA/erdma: Defer probing if netdevice can not be found

to the 6.1-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:
     rdma-erdma-defer-probing-if-netdevice-can-not-be-fou.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 38292fbedefbdea572d211d1cc11749c4efc1c8e
Author: Cheng Xu <chengyou@xxxxxxxxxxxxxxxxx>
Date:   Mon Mar 20 16:46:52 2023 +0800

    RDMA/erdma: Defer probing if netdevice can not be found
    
    [ Upstream commit 6bd1bca858f1734a75572a788213d1e1143f2f0a ]
    
    ERDMA device may be probed before its associated netdevice, returning
    -EPROBE_DEFER allows OS try to probe erdma device later.
    
    Fixes: d55e6fb4803c ("RDMA/erdma: Add the erdma module")
    Signed-off-by: Cheng Xu <chengyou@xxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230320084652.16807-5-chengyou@xxxxxxxxxxxxxxxxx
    Signed-off-by: Leon Romanovsky <leon@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/infiniband/hw/erdma/erdma_main.c b/drivers/infiniband/hw/erdma/erdma_main.c
index 49778bb294ae4..49d9319217414 100644
--- a/drivers/infiniband/hw/erdma/erdma_main.c
+++ b/drivers/infiniband/hw/erdma/erdma_main.c
@@ -56,7 +56,7 @@ static int erdma_netdev_event(struct notifier_block *nb, unsigned long event,
 static int erdma_enum_and_get_netdev(struct erdma_dev *dev)
 {
 	struct net_device *netdev;
-	int ret = -ENODEV;
+	int ret = -EPROBE_DEFER;
 
 	/* Already binded to a net_device, so we skip. */
 	if (dev->netdev)



[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