diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-06-01 21:35:48 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-06-05 23:35:15 (GMT) |
commit | fcbf12817100d23890832801507107718a1fa448 (patch) | |
tree | 396c12f52dac510d6c7ca419364d765b1288fd3f | |
parent | afb523c54718da57ff661950bd3287ec9eeb66bd (diff) | |
download | linux-fsl-qoriq-fcbf12817100d23890832801507107718a1fa448.tar.xz |
netfilter: ipset: Fix return code for destroy when sets are in use
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-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 8041bef..42aa64b 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -767,7 +767,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; } } |