From: Jozsef Kadlecsik Date: Sat, 28 May 2011 21:16:51 +0000 (+0200) Subject: Fix return code for destroy when sets are in use X-Git-Tag: v6.7~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbe1a3604950dbd2aacecac003d0deff99b88b7d;p=ipset Fix return code for destroy when sets are in use --- diff --git a/kernel/net/netfilter/ipset/ip_set_core.c b/kernel/net/netfilter/ipset/ip_set_core.c index dd657ca..297d03b 100644 --- a/kernel/net/netfilter/ipset/ip_set_core.c +++ b/kernel/net/netfilter/ipset/ip_set_core.c @@ -781,7 +781,7 @@ ip_set_destroy(struct sock *ctnl, struct sk_buff *skb, if (!attr[IPSET_ATTR_SETNAME]) { for (i = 0; i < ip_set_max; i++) { if (ip_set_list[i] != NULL && ip_set_list[i]->ref) { - ret = IPSET_ERR_BUSY; + ret = -IPSET_ERR_BUSY; goto out; } }