diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-06-16 18:57:44 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-06-16 18:57:44 +0200 |
commit | 9d8832320f832b9360f6bca71cc045d2e4df171b (patch) | |
tree | d1e6c5096335e45785c8451a0a993bfdaaf9220e /net/netfilter | |
parent | b66554cf03fe866b3fb7b9f40f430b8ba09f41c8 (diff) | |
download | linux-9d8832320f832b9360f6bca71cc045d2e4df171b.tar.gz linux-9d8832320f832b9360f6bca71cc045d2e4df171b.tar.bz2 linux-9d8832320f832b9360f6bca71cc045d2e4df171b.zip |
netfilter: ipset: fix return code for destroy when sets are in use
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/ipset/ip_set_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |