diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-02-13 13:18:36 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-02 09:58:50 +0200 |
| commit | 8906234c5015ff2a935f11a1a5ee697eb526aae8 (patch) | |
| tree | 7e1096e0050aab2c73c3e348a0b8e09227b55610 /include/linux/kdebug.h | |
| parent | 4f67e8976f7bbcaec6e74ab73085031938315009 (diff) | |
netfilter: nft_compat: use .release_ops and remove list of extension
[ Upstream commit b8e204006340b7aaf32bd2b9806c692f6e0cb38a ]
Add .release_ops, that is called in case of error at a later stage in
the expression initialization path, ie. .select_ops() has been already
set up operations and that needs to be undone. This allows us to unwind
.select_ops from the error path, ie. release the dynamic operations for
this extension.
Moreover, allocate one single operation instead of recycling them, this
comes at the cost of consuming a bit more memory per rule, but it
simplifies the infrastructure.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/kdebug.h')
0 files changed, 0 insertions, 0 deletions
