summaryrefslogtreecommitdiff
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-03-05 09:57:44 (GMT)
committerDavid S. Miller <davem@davemloft.net>2009-03-05 09:57:44 (GMT)
commit72e2240f181871675d3a979766330c91d48a1673 (patch)
treeb6905491b40a80761e153e5532f69d4bbc3aac76 /drivers/net/bonding/bond_main.c
parent77827a7cf3aa415f8afec6d9d0537dda8de90ef1 (diff)
downloadlinux-fsl-qoriq-72e2240f181871675d3a979766330c91d48a1673.tar.xz
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>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 9fb3883..e0578fe 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4113,7 +4113,7 @@ static int bond_neigh_setup(struct net_device *dev, struct neigh_parms *parms)
const struct net_device_ops *slave_ops
= slave->dev->netdev_ops;
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;
}