diff options
Diffstat (limited to 'kernel/bpf/btf.c')
-rw-r--r-- | kernel/bpf/btf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index ee36b7f60936..4ff0de860ab7 100644 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c @@ -4082,7 +4082,7 @@ int btf_resolve_helper_id(struct bpf_verifier_log *log, { int id; - if (fn->arg_type[arg] != ARG_PTR_TO_BTF_ID) + if (fn->arg_type[arg] != ARG_PTR_TO_BTF_ID || !btf_vmlinux) return -EINVAL; id = fn->btf_id[arg]; if (!id || id > btf_vmlinux->nr_types) |