mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
bpf: Remove WARN_ON_ONCE in check_kfunc_mem_size_reg()
The warning is too late if it does happen. Remove it. Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260423033441.2538149-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
54c27ea6da
commit
8a16c5b2b2
|
|
@ -7134,8 +7134,6 @@ static int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg
|
|||
struct bpf_call_arg_meta meta;
|
||||
int err;
|
||||
|
||||
WARN_ON_ONCE(regno < BPF_REG_2 || regno > BPF_REG_5);
|
||||
|
||||
memset(&meta, 0, sizeof(meta));
|
||||
|
||||
if (may_be_null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user