Message ID | 9ee84b00b0490fd109665939c5b164c2c59c5921.1478797030.git.joseph.salisbury@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 8c1e03e..1329271 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -3037,7 +3037,7 @@ int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p, if (!t) goto err; - for (i = 0; i < ARRAY_SIZE(t->neigh_vars); i++) { + for (i = 0; i < NEIGH_VAR_GC_INTERVAL; i++) { t->neigh_vars[i].data += (long) p; t->neigh_vars[i].extra1 = dev; t->neigh_vars[i].extra2 = p;