projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4765473
)
netfilter: nf_tables: replace WARN_ON by WARN_ON_ONCE for unknown verdicts
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 9 Dec 2021 23:11:45 +0000
(
00:11
+0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 23 Dec 2021 00:00:56 +0000
(
01:00
+0100)
Bug might trigger warning for each packet, call WARN_ON_ONCE instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_core.c
b/net/netfilter/nf_tables_core.c
index d026890a984272e24e40f05341ea7b30998e8cbb..d2ada666d889e0edc040e1b4af31b63f386df17b 100644
(file)
--- 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) {