bonding: Fix device passed into ->ndo_neigh_setup().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2009-03-05 01:57:44 -08:00 committed by David S. Miller
parent 77827a7cf3
commit 72e2240f18
1 changed files with 1 additions and 1 deletions

View File

@ -4113,7 +4113,7 @@ static int bond_neigh_setup(struct net_device *dev, struct neigh_parms *parms)
const struct net_device_ops *slave_ops const struct net_device_ops *slave_ops
= slave->dev->netdev_ops; = slave->dev->netdev_ops;
if (slave_ops->ndo_neigh_setup) if (slave_ops->ndo_neigh_setup)
return slave_ops->ndo_neigh_setup(dev, parms); return slave_ops->ndo_neigh_setup(slave->dev, parms);
} }
return 0; return 0;
} }