![]() |
lvs-devel
|
| To: | horms@xxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] ipvs: Return negative error values from ip_vs_edit_service() |
| Cc: | netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, kaber@xxxxxxxxx, vbusam@xxxxxxxxxx, Julius Volz <juliusv@xxxxxxxxxx> |
| From: | Sven Wegener <sven.wegener@xxxxxxxxxxx> |
| Date: | Fri, 5 Sep 2008 13:47:37 +0200 (CEST) |
Like the other code in this function does.
Signed-off-by: Sven Wegener <sven.wegener@xxxxxxxxxxx>
---
net/ipv4/ipvs/ip_vs_ctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Simon, please apply onto lvs-next-2.6.
diff --git a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c
index 7f89c58..d2dc05a 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;
}
}
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| Previous by Date: | [PATCH] ipvs: Use pointer to address from sync message, Sven Wegener |
|---|---|
| Next by Date: | Re: [PATCH] ipvs: Use pointer to address from sync message, Julius Volz |
| Previous by Thread: | [PATCHv3 24/24] IPVS: Allow adding IPv6 services from userspace, Julius Volz |
| Next by Thread: | [PATCHv3 09/24] IPVS: Add 'af' args to protocol handler functions, Julius Volz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |