projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fa1d8
)
libbpf: Fix map index used in error message
author
Toke Høiland-Jørgensen
<toke@redhat.com>
Wed, 19 Aug 2020 11:05:34 +0000
(13:05 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 20 Aug 2020 14:21:27 +0000
(16:21 +0200)
The error message emitted by bpf_object__init_user_btf_maps() was using the
wrong section ID.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/bpf/20200819110534.9058-1-toke@redhat.com
tools/lib/bpf/libbpf.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.c
b/tools/lib/bpf/libbpf.c
index 5d20b2da44271357e79c8328ec082b04ec60377d..0ad0b0491e1f2a720bf1a78890242b9b7373d064 100644
(file)
--- a/
tools/lib/bpf/libbpf.c
+++ b/
tools/lib/bpf/libbpf.c
@@
-2264,7
+2264,7
@@
static int bpf_object__init_user_btf_maps(struct bpf_object *obj, bool strict,
data = elf_getdata(scn, NULL);
if (!scn || !data) {
pr_warn("failed to get Elf_Data from map section %d (%s)\n",
- obj->efile.maps_shndx, MAPS_ELF_SEC);
+ obj->efile.
btf_
maps_shndx, MAPS_ELF_SEC);
return -EINVAL;
}