From: Jozsef Kadlecsik Date: Thu, 16 Jun 2011 16:57:44 +0000 (+0200) Subject: netfilter: ipset: fix return code for destroy when sets are in use X-Git-Tag: firefly_0821_release~3680^2~5008^2~438 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9d8832320f832b9360f6bca71cc045d2e4df171b;p=firefly-linux-kernel-4.4.55.git netfilter: ipset: fix return code for destroy when sets are in use Signed-off-by: Jozsef Kadlecsik Signed-off-by: Patrick McHardy --- diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c index 64e7b04759a7..80a1262104bf 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -776,7 +776,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; } }