diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ce2b77515a9e38ec1fc8baed84ae12f40374b335..8be82a7f0e0f1a764e9093c3d0042442994d82d4 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)