diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-09-05 13:47:37 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-08 09:34:44 +1000 |
commit | a5ba4bf2732c85d8c95e0432966f79aa2b159478 (patch) | |
tree | cac49e260878141cf7d89aba4ffca523fd4703eb | |
parent | cd9fe6c4f0afe334862c871bf5d32770daa748ec (diff) | |
download | linux-a5ba4bf2732c85d8c95e0432966f79aa2b159478.tar.gz linux-a5ba4bf2732c85d8c95e0432966f79aa2b159478.tar.bz2 linux-a5ba4bf2732c85d8c95e0432966f79aa2b159478.zip |
ipvs: Return negative error values from ip_vs_edit_service()
Like the other code in this function does.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-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) #ifdef CONFIG_IP_VS_IPV6 if (u->af == AF_INET6) { if (!sched->supports_ipv6) { - ret = EAFNOSUPPORT; + ret = -EAFNOSUPPORT; goto out; } if ((u->netmask < 1) || (u->netmask > 128)) { - ret = EINVAL; + ret = -EINVAL; goto out; } } |