]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: avoid BUG_ON usage
authorFlorian Westphal <fw@strlen.de>
Tue, 4 Sep 2018 14:01:47 +0000 (16:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Sep 2018 14:11:12 +0000 (16:11 +0200)
commit5c0b9a80a01319731d51f1b2f2028752e2945f11
treedcb66f58e24c8412482ce6e89c63ff9158029c30
parente929f6759aeafc985799e2234e14c0a48baeb772
netfilter: nf_tables: avoid BUG_ON usage

None of these spots really needs to crash the kernel.
In one two cases we can jsut report error to userspace, in the other
cases we can just use WARN_ON (and leak memory instead).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
net/netfilter/nft_cmp.c
net/netfilter/nft_reject.c