From 533a4a2a94cc8aa21684b45730da7249e66eb669 Mon Sep 17 00:00:00 2001 From: Jiri Pirko Date: Tue, 10 Dec 2013 23:55:07 +0100 Subject: [PATCH] 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 42a0bb58b736e53634a4940c3200d9941013aa8a "neigh: restore old behaviour of default parms values" Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ce2b77515a9e3..8be82a7f0e0f1 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) -- 2.39.5