diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-06 17:12:30 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-09-08 18:16:59 +0200 |
commit | b44492afd2b123f605c3aa2cbeee3398d9ebbcc5 (patch) | |
tree | b716b7c47ad504a5f4d0bbcaa21a476229611bf6 /lib/bsearch.c | |
parent | b74ae9618b15de8e9d5a08bc1fb2eeaf504986d4 (diff) | |
download | linux-b44492afd2b123f605c3aa2cbeee3398d9ebbcc5.tar.gz |
netfilter: nf_tables_offload: avoid excessive stack usage
The nft_offload_ctx structure is much too large to put on the
stack:
net/netfilter/nf_tables_offload.c:31:23: error: stack frame size of 1200 bytes in function 'nft_flow_rule_create' [-Werror,-Wframe-larger-than=]
Use dynamic allocation here, as we do elsewhere in the same
function.
Fixes: c9626a2cbdb2 ("netfilter: nf_tables: add hardware offload support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'lib/bsearch.c')
0 files changed, 0 insertions, 0 deletions