summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPatrick McHardy2014-03-07 19:08:31 +0100
committerPablo Neira Ayuso2014-03-08 12:35:18 +0100
commitab9da5c19f359f9ac2635157d9cd45deec4ef63c (patch)
treee39e045f4b5da765cf8ebccc7a3acda8d8b7ab8d /net/netfilter/nf_tables_api.c
parentnetfilter: nf_tables: restore context for expression destructors (diff)
downloadkernel-qcow2-linux-ab9da5c19f359f9ac2635157d9cd45deec4ef63c.tar.gz
kernel-qcow2-linux-ab9da5c19f359f9ac2635157d9cd45deec4ef63c.tar.xz
kernel-qcow2-linux-ab9da5c19f359f9ac2635157d9cd45deec4ef63c.zip
netfilter: nf_tables: restore notifications for anonymous set destruction
Since we have the context available again, we can restore notifications for destruction of anonymous sets. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r--net/netfilter/nf_tables_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 2c10c3fe78c3..33045a562297 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -2442,8 +2442,7 @@ err1:
static void nf_tables_set_destroy(const struct nft_ctx *ctx, struct nft_set *set)
{
list_del(&set->list);
- if (!(set->flags & NFT_SET_ANONYMOUS))
- nf_tables_set_notify(ctx, set, NFT_MSG_DELSET);
+ nf_tables_set_notify(ctx, set, NFT_MSG_DELSET);
set->ops->destroy(set);
module_put(set->ops->owner);