mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
Revert "net: bonding: fix error return code of bond_neigh_init()"
commit080bfa1e6dupstream. This reverts commit2055a99da8. This change rejects legitimate configurations. A slave doesn't need to exist nor implement ndo_slave_setup. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
451ba16cc5
commit
36478a9ec5
|
|
@ -3918,15 +3918,11 @@ static int bond_neigh_init(struct neighbour *n)
|
|||
|
||||
rcu_read_lock();
|
||||
slave = bond_first_slave_rcu(bond);
|
||||
if (!slave) {
|
||||
ret = -EINVAL;
|
||||
if (!slave)
|
||||
goto out;
|
||||
}
|
||||
slave_ops = slave->dev->netdev_ops;
|
||||
if (!slave_ops->ndo_neigh_setup) {
|
||||
ret = -EINVAL;
|
||||
if (!slave_ops->ndo_neigh_setup)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* TODO: find another way [1] to implement this.
|
||||
* Passing a zeroed structure is fragile,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user