mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
3e4d6f91ca
commit
e4b2d06892
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue