mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
netfilter: nft_payload: WARN_ON_ONCE instead of BUG
BUG() is too harsh for unknown payload base, use WARN_ON_ONCE() instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
0d1873a522
commit
8801d791b4
@ -157,7 +157,8 @@ void nft_payload_eval(const struct nft_expr *expr,
|
||||
goto err;
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
WARN_ON_ONCE(1);
|
||||
goto err;
|
||||
}
|
||||
offset += priv->offset;
|
||||
|
||||
@ -664,7 +665,8 @@ static void nft_payload_set_eval(const struct nft_expr *expr,
|
||||
goto err;
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
WARN_ON_ONCE(1);
|
||||
goto err;
|
||||
}
|
||||
|
||||
csum_offset = offset + priv->csum_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user