aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHengqi Chen <[email protected]>2021-11-15 01:24:36 +0000
committerAndrii Nakryiko <[email protected]>2021-11-15 02:38:13 +0000
commite5043894b21f7d99d3db31ad06308d6c5726caa6 (patch)
tree0ccaa10b8751a723e46994d985e39b891dbff4bc /net/unix/af_unix.c
parentMerge branch 'bpftool: miscellaneous fixes' (diff)
downloadkernel-e5043894b21f7d99d3db31ad06308d6c5726caa6.tar.gz
kernel-e5043894b21f7d99d3db31ad06308d6c5726caa6.zip
bpftool: Use libbpf_get_error() to check error
Currently, LIBBPF_STRICT_ALL mode is enabled by default for bpftool which means on error cases, some libbpf APIs would return NULL pointers. This makes IS_ERR check failed to detect such cases and result in segfault error. Use libbpf_get_error() instead like we do in libbpf itself. Signed-off-by: Hengqi Chen <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions