From: Patrick McHardy Date: Thu, 5 Mar 2009 09:57:44 +0000 (-0800) Subject: bonding: Fix device passed into ->ndo_neigh_setup(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72e2240f181871675d3a979766330c91d48a1673;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bonding: Fix device passed into ->ndo_neigh_setup(). Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 9fb388388fb7..e0578fe8c0db 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; }