Commit a8fee96
libbpf: Avoid NULL deref when initializing map BTF info
If BPF object doesn't have an BTF info, don't attempt to search for BTF
types describing BPF map key or value layout.
Fixes: 262cfb7 ("libbpf: Init btf_{key,value}_type_id on internal map open")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220320001911.3640917-1-andrii@kernel.org1 parent 9492450 commit a8fee96
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4197 | 4197 | | |
4198 | 4198 | | |
4199 | 4199 | | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
4200 | 4203 | | |
4201 | 4204 | | |
4202 | 4205 | | |
| |||
0 commit comments