diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-18 14:29:45 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-19 11:37:32 +0100 |
commit | 475beb9c8de1227ff6ec572f37a05c5c612d94a7 (patch) | |
tree | 0f9045ad1d21208b0c1915d5bd88828fe3e2be3a /Documentation/filesystems/debugfs.txt | |
parent | 772f4e82b3ffa1eb7412cd531f718a96a0e5474b (diff) | |
download | linux-475beb9c8de1227ff6ec572f37a05c5c612d94a7.tar.gz linux-475beb9c8de1227ff6ec572f37a05c5c612d94a7.tar.bz2 linux-475beb9c8de1227ff6ec572f37a05c5c612d94a7.zip |
netfilter: nf_tables: add nft_set_elem_expr_destroy() and use it
This patch adds nft_set_elem_expr_destroy() to destroy stateful
expressions in set elements.
This patch also updates the commit path to call this function to invoke
expr->ops->destroy_clone when required.
This is implicitly fixing up a module reference counter leak and
a memory leak in expressions that allocated internal state, e.g.
nft_counter.
Fixes: 409444522976 ("netfilter: nf_tables: add elements with stateful expressions")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Documentation/filesystems/debugfs.txt')
0 files changed, 0 insertions, 0 deletions