linux/tools
Mauricio Vásquez 622a5b582c bpftool: Fix error check when calling hashmap__new()
hashmap__new() encodes errors with ERR_PTR(), hence it's not valid to
check the returned pointer against NULL and IS_ERR() has to be used
instead.

libbpf_get_error() can't be used in this case as hashmap__new() is not
part of the public libbpf API and it'll continue using ERR_PTR() after
libbpf 1.0.

Fixes: 8f184732b6 ("bpftool: Switch to libbpf's hashmap for pinned paths of BPF objects")
Fixes: 2828d0d75b ("bpftool: Switch to libbpf's hashmap for programs/maps in BTF listing")
Fixes: d6699f8e0f ("bpftool: Switch to libbpf's hashmap for PIDs/names references")
Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20220107152620.192327-2-mauricio@kinvolk.io
2022-01-12 17:01:36 -08:00
..
accounting
arch
bootconfig
bpf bpftool: Fix error check when calling hashmap__new() 2022-01-12 17:01:36 -08:00
build Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-10 15:56:13 -08:00
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include Networking changes for 5.17. 2022-01-10 19:06:09 -08:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Use IS_ERR_OR_NULL() in hashmap__free() 2022-01-12 17:01:36 -08:00
memory-model
objtool
pci
pcmcia
perf Networking changes for 5.17. 2022-01-10 19:06:09 -08:00
power
rcu
scripts tools: Help cross-building with clang 2021-12-16 12:15:04 -08:00
spi
testing Networking changes for 5.17. 2022-01-10 19:06:09 -08:00
thermal/tmon
time
tracing
usb
virtio
vm
wmi
Makefile