]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipvs: Return negative error values from ip_vs_edit_service()
authorSven Wegener <sven.wegener@stealer.net>
Fri, 5 Sep 2008 11:47:37 +0000 (13:47 +0200)
committerSimon Horman <horms@verge.net.au>
Sun, 7 Sep 2008 23:34:44 +0000 (09:34 +1000)
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>
net/ipv4/ipvs/ip_vs_ctl.c

index 7f89c588e5887a9e3563fed29cd6db7872309f85..d2dc05a843f50912ccc8c42686369db0ed6af124 100644 (file)
@@ -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;
                }
        }