diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-10 00:11:45 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-23 01:00:56 +0100 |
commit | 690d541739a36e23b0c81ab7c5a7d2a72dd22107 (patch) | |
tree | ac047c2f27773ce5d13190dfec446ddd4c3767e2 /net/netfilter | |
parent | 4765473fefd4403b5eeca371637065b561522c50 (diff) |
netfilter: nf_tables: replace WARN_ON by WARN_ON_ONCE for unknown verdicts
Bug might trigger warning for each packet, call WARN_ON_ONCE instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_tables_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_core.c b/net/netfilter/nf_tables_core.c index d026890a9842..d2ada666d889 100644 --- a/net/netfilter/nf_tables_core.c +++ b/net/netfilter/nf_tables_core.c @@ -260,7 +260,7 @@ next_rule: case NFT_RETURN: break; default: - WARN_ON(1); + WARN_ON_ONCE(1); } if (stackptr > 0) { |