ipvs: Pass ipvs not net to __ip_vs_get_service_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
f1faa1e749
commit
b2876b7773
1 changed files with 2 additions and 3 deletions
|
@ -2477,11 +2477,10 @@ ip_vs_copy_service(struct ip_vs_service_entry *dst, struct ip_vs_service *src)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
__ip_vs_get_service_entries(struct net *net,
|
__ip_vs_get_service_entries(struct netns_ipvs *ipvs,
|
||||||
const struct ip_vs_get_services *get,
|
const struct ip_vs_get_services *get,
|
||||||
struct ip_vs_get_services __user *uptr)
|
struct ip_vs_get_services __user *uptr)
|
||||||
{
|
{
|
||||||
struct netns_ipvs *ipvs = net_ipvs(net);
|
|
||||||
int idx, count=0;
|
int idx, count=0;
|
||||||
struct ip_vs_service *svc;
|
struct ip_vs_service *svc;
|
||||||
struct ip_vs_service_entry entry;
|
struct ip_vs_service_entry entry;
|
||||||
|
@ -2720,7 +2719,7 @@ do_ip_vs_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
ret = __ip_vs_get_service_entries(net, get, user);
|
ret = __ip_vs_get_service_entries(ipvs, get, user);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue