diff options
-rw-r--r-- | net/ipv4/ipvs/ip_vs_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 7f89c588e588..d2dc05a843f5 100644 --- a/net/ipv4/ipvs/ip_vs_ctl.c +++ b/net/ipv4/ipvs/ip_vs_ctl.c | |||
@@ -1284,11 +1284,11 @@ ip_vs_edit_service(struct ip_vs_service *svc, struct ip_vs_service_user_kern *u) | |||
1284 | #ifdef CONFIG_IP_VS_IPV6 | 1284 | #ifdef CONFIG_IP_VS_IPV6 |
1285 | if (u->af == AF_INET6) { | 1285 | if (u->af == AF_INET6) { |
1286 | if (!sched->supports_ipv6) { | 1286 | if (!sched->supports_ipv6) { |
1287 | ret = EAFNOSUPPORT; | 1287 | ret = -EAFNOSUPPORT; |
1288 | goto out; | 1288 | goto out; |
1289 | } | 1289 | } |
1290 | if ((u->netmask < 1) || (u->netmask > 128)) { | 1290 | if ((u->netmask < 1) || (u->netmask > 128)) { |
1291 | ret = EINVAL; | 1291 | ret = -EINVAL; |
1292 | goto out; | 1292 | goto out; |
1293 | } | 1293 | } |
1294 | } | 1294 | } |