Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d47afb authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

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 1d4c8c29
    "neigh: restore old behaviour of default parms values"

Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10ae76fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2850,7 +2850,7 @@ static void neigh_proc_update(struct ctl_table *ctl, int write)
{
{
	struct net_device *dev = ctl->extra1;
	struct net_device *dev = ctl->extra1;
	struct neigh_parms *p = ctl->extra2;
	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;
	int index = (int *) ctl->data - p->data;


	if (!write)
	if (!write)