Skip to content

Commit

Permalink
netfilter: nf_tables: replace WARN_ON by WARN_ON_ONCE for unknown ver…
Browse files Browse the repository at this point in the history
…dicts

Bug might trigger warning for each packet, call WARN_ON_ONCE instead.

Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
ummakynes committed Dec 23, 2021
1 parent 4765473 commit 690d541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_tables_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ nft_do_chain(struct nft_pktinfo *pkt, void *priv)
case NFT_RETURN:
break;
default:
WARN_ON(1);
WARN_ON_ONCE(1);
}

if (stackptr > 0) {
Expand Down

0 comments on commit 690d541

Please sign in to comment.