diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-12-10 23:55:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-10 17:58:44 -0500 |
commit | 77d47afbf3c58350c3708b609005358bbd33e085 (patch) | |
tree | 8b5ce00b28f666863d0114d3d1893e4e30118c1b /net/core | |
parent | 10ae76faa97cb3e1020dcf2cdae6b1ea8359abab (diff) |
neigh: use neigh_parms_net() to get struct neigh_parms->net pointer
This fixes compile error when CONFIG_NET_NS is not set.
Introduced by:
commit 1d4c8c29841b9991cdf3c7cc4ba7f96a94f104ca
"neigh: restore old behaviour of default parms values"
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/neighbour.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ce2b77515a9e..8be82a7f0e0f 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -2850,7 +2850,7 @@ static void neigh_proc_update(struct ctl_table *ctl, int write) { struct net_device *dev = ctl->extra1; struct neigh_parms *p = ctl->extra2; - struct net *net = p->net; + struct net *net = neigh_parms_net(p); int index = (int *) ctl->data - p->data; if (!write) |