summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-03-05 01:57:44 -0800
committerDavid S. Miller <davem@davemloft.net>2009-03-05 01:57:44 -0800
commit72e2240f181871675d3a979766330c91d48a1673 (patch)
treeb6905491b40a80761e153e5532f69d4bbc3aac76 /drivers
parent77827a7cf3aa415f8afec6d9d0537dda8de90ef1 (diff)
downloadop-kernel-dev-72e2240f181871675d3a979766330c91d48a1673.zip
op-kernel-dev-72e2240f181871675d3a979766330c91d48a1673.tar.gz
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')
-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;
}
OpenPOWER on IntegriCloud