diff options
author | Andrii Nakryiko <[email protected]> | 2022-03-19 17:19:11 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-03-20 18:53:04 -0700 |
commit | a8fee96202e279441d0e52d83eb100bd4a6d6272 (patch) | |
tree | e019e90e56ac3ff16ecdecac794f41f3353a12c1 /net/lapb/lapb_subr.c | |
parent | 9492450fd28736262dea9143ebb3afc2c131ace1 (diff) |
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: 262cfb74ffda ("libbpf: Init btf_{key,value}_type_id on internal map open")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions