diff options
author | Ian Rogers <irogers@google.com> | 2021-05-05 02:49:10 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-05-05 21:29:33 +0300 |
commit | 9683e5775c75097c46bd24e65411b16ac6c6cbb3 (patch) | |
tree | e217f762417abfa1afc7ff057d3245763dd752d7 /net/ipv6 | |
parent | 1682d8df20aa505f6ab12c76e934b26ede39c529 (diff) | |
download | linux-9683e5775c75097c46bd24e65411b16ac6c6cbb3.tar.xz |
libbpf: Add NULL check to add_dummy_ksym_var
Avoids a segv if btf isn't present. Seen on the call path
__bpf_object__open calling bpf_object__collect_externs.
Fixes: 5bd022ec01f0 (libbpf: Support extern kernel function)
Suggested-by: Stanislav Fomichev <sdf@google.com>
Suggested-by: Petar Penkov <ppenkov@google.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210504234910.976501-1-irogers@google.com
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions