diff options
| author | Florian Westphal <[email protected]> | 2017-12-08 16:01:53 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2018-01-08 17:01:12 +0000 |
| commit | 03d13b6868a261f24fbc82b6a2d5823df8d075d3 (patch) | |
| tree | 562f6c03438b662bdc985a4ddc8892a7bf892eaa /net/netfilter/utils.c | |
| parent | netfilter: reduce NF_MAX_HOOKS define (diff) | |
| download | kernel-03d13b6868a261f24fbc82b6a2d5823df8d075d3.tar.gz kernel-03d13b6868a261f24fbc82b6a2d5823df8d075d3.zip | |
netfilter: xtables: add and use xt_request_find_table_lock
currently we always return -ENOENT to userspace if we can't find
a particular table, or if the table initialization fails.
Followup patch will make nat table init fail in case nftables already
registered a nat hook so this change makes xt_find_table_lock return
an ERR_PTR to return the errno value reported from the table init
function.
Add xt_request_find_table_lock as try_then_request_module replacement
and use it where needed.
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/netfilter/utils.c')
0 files changed, 0 insertions, 0 deletions
