forked from Minki/linux
ipvs: Pass ipvs not net to __ip_vs_get_dest_entries
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
b2876b7773
commit
08fff4c357
@ -2528,10 +2528,9 @@ out:
|
||||
}
|
||||
|
||||
static inline int
|
||||
__ip_vs_get_dest_entries(struct net *net, const struct ip_vs_get_dests *get,
|
||||
__ip_vs_get_dest_entries(struct netns_ipvs *ipvs, const struct ip_vs_get_dests *get,
|
||||
struct ip_vs_get_dests __user *uptr)
|
||||
{
|
||||
struct netns_ipvs *ipvs = net_ipvs(net);
|
||||
struct ip_vs_service *svc;
|
||||
union nf_inet_addr addr = { .ip = get->addr };
|
||||
int ret = 0;
|
||||
@ -2761,7 +2760,7 @@ do_ip_vs_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
ret = __ip_vs_get_dest_entries(net, get, user);
|
||||
ret = __ip_vs_get_dest_entries(ipvs, get, user);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user