Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4b2d068 authored by Yuval Shaia's avatar Yuval Shaia Committed by Doug Ledford
Browse files

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: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 3e4d6f91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}