7d0b3953f6
Guard close(link_fd) with extra link_fd >= 0 check to prevent close(-1).
Detected by Coverity static analysis.
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
Build | ||
Makefile | ||
bpf.c | ||
bpf.h | ||
bpf_core_read.h | ||
bpf_endian.h | ||
bpf_gen_internal.h | ||
bpf_helpers.h | ||
bpf_prog_linfo.c | ||
bpf_tracing.h | ||
btf.c | ||
btf.h | ||
btf_dump.c | ||
elf.c | ||
features.c | ||
gen_loader.c | ||
hashmap.c | ||
hashmap.h | ||
libbpf.c | ||
libbpf.h | ||
libbpf.map | ||
libbpf.pc.template | ||
libbpf_common.h | ||
libbpf_errno.c | ||
libbpf_internal.h | ||
libbpf_legacy.h | ||
libbpf_probes.c | ||
libbpf_version.h | ||
linker.c | ||
netlink.c | ||
nlattr.c | ||
nlattr.h | ||
relo_core.c | ||
relo_core.h | ||
ringbuf.c | ||
skel_internal.h | ||
str_error.c | ||
str_error.h | ||
strset.c | ||
strset.h | ||
usdt.bpf.h | ||
usdt.c | ||
zip.c | ||
zip.h |