summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/net/netfilter/ipset/ip_set_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_core.c b/kernel/net/netfilter/ipset/ip_set_core.c
index 7ed933d..63a7955 100644
--- a/kernel/net/netfilter/ipset/ip_set_core.c
+++ b/kernel/net/netfilter/ipset/ip_set_core.c
@@ -1360,7 +1360,7 @@ IPSET_CBFN(ip_set_rename, struct net *net, struct sock *ctnl,
out:
write_unlock_bh(&ip_set_ref_lock);
- return ret;
+ return ret < 0 ? ret : 0;
}
/* Swap two sets so that name/index points to the other.