From: Sven Wegener Date: Fri, 5 Sep 2008 11:47:37 +0000 (+0200) Subject: ipvs: Return negative error values from ip_vs_edit_service() X-Git-Tag: v2.6.28-rc1~717^2~300^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a5ba4bf2732c85d8c95e0432966f79aa2b159478;p=linux-2.6-omap-h63xx.git ipvs: Return negative error values from ip_vs_edit_service() Like the other code in this function does. Signed-off-by: Sven Wegener Acked-by: Julius Volz Signed-off-by: Simon Horman --- diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c index 7f89c588e58..d2dc05a843f 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; } }