mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
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 1d4c8c2984
"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>
This commit is contained in:
parent
10ae76faa9
commit
77d47afbf3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user