File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -15339,14 +15339,12 @@ static int check_btf_func(struct bpf_verifier_env *env,
15339
15339
bpfptr_t uattr)
15340
15340
{
15341
15341
const struct btf_type *type, *func_proto, *ret_type;
15342
- u32 i, nfuncs, urec_size, min_size;
15343
- u32 krec_size = sizeof(struct bpf_func_info);
15342
+ u32 i, nfuncs, urec_size;
15344
15343
struct bpf_func_info *krecord;
15345
15344
struct bpf_func_info_aux *info_aux = NULL;
15346
15345
struct bpf_prog *prog;
15347
15346
const struct btf *btf;
15348
15347
bpfptr_t urecord;
15349
- u32 prev_offset = 0;
15350
15348
bool scalar_return;
15351
15349
int ret = -ENOMEM;
15352
15350
@@ -15367,7 +15365,6 @@ static int check_btf_func(struct bpf_verifier_env *env,
15367
15365
btf = prog->aux->btf;
15368
15366
15369
15367
urecord = make_bpfptr(attr->func_info, uattr.is_kernel);
15370
- min_size = min_t(u32, krec_size, urec_size);
15371
15368
15372
15369
krecord = prog->aux->func_info;
15373
15370
info_aux = kcalloc(nfuncs, sizeof(*info_aux), GFP_KERNEL | __GFP_NOWARN);
@@ -15401,7 +15398,6 @@ static int check_btf_func(struct bpf_verifier_env *env,
15401
15398
goto err_free;
15402
15399
}
15403
15400
15404
- prev_offset = krecord[i].insn_off;
15405
15401
bpfptr_add(&urecord, urec_size);
15406
15402
}
15407
15403
You can’t perform that action at this time.
0 commit comments