提交 e4b2d068 编写于 作者: Y Yuval Shaia 提交者: Doug Ledford

IB/ipoib: Remove device when one port fails to init

Call ipoib_remove_one when one of the IPoIB ports fails to initialize in
order not to leave the module in unstable state.
Signed-off-by: NYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 3e4d6f91
......@@ -2311,7 +2311,8 @@ static void ipoib_add_one(struct ib_device *device)
}
if (!count) {
kfree(dev_list);
pr_err("Failed to init port, removing it\n");
ipoib_remove_one(device, dev_list);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册