提交 b027cacd 编写于 作者: R Roland Dreier

mlx4_core: Fix infinite loop on device initialization

    
Commit 3d73c288 ("mlx4_core: Fix section mismatches") introduced a
stupid bug in device init: when some of mlx4_init_one() was split off
into __mlx4_init_one(), the call from the main mlx4_init_one()
function was back to mlx4_init_one() rather than to __mlx4_init_one(),
which leads to an obvious infinite loop if the function is every
called.
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 e8690861
...@@ -884,7 +884,7 @@ static int __devinit mlx4_init_one(struct pci_dev *pdev, ...@@ -884,7 +884,7 @@ static int __devinit mlx4_init_one(struct pci_dev *pdev,
++mlx4_version_printed; ++mlx4_version_printed;
} }
return mlx4_init_one(pdev, id); return __mlx4_init_one(pdev, id);
} }
static void mlx4_remove_one(struct pci_dev *pdev) static void mlx4_remove_one(struct pci_dev *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册