Skip to content

Commit 6bd1bca

Browse files
hz-chengrleon
authored andcommitted
RDMA/erdma: Defer probing if netdevice can not be found
ERDMA device may be probed before its associated netdevice, returning -EPROBE_DEFER allows OS try to probe erdma device later. Fixes: d55e6fb ("RDMA/erdma: Add the erdma module") Signed-off-by: Cheng Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 0dd83a4 commit 6bd1bca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/erdma/erdma_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int erdma_netdev_event(struct notifier_block *nb, unsigned long event,
5656
static int erdma_enum_and_get_netdev(struct erdma_dev *dev)
5757
{
5858
struct net_device *netdev;
59-
int ret = -ENODEV;
59+
int ret = -EPROBE_DEFER;
6060

6161
/* Already binded to a net_device, so we skip. */
6262
if (dev->netdev)

0 commit comments

Comments
 (0)