diff options
| author | 2022-02-08 10:15:52 +0300 | |
|---|---|---|
| committer | 2022-02-08 22:34:44 +0100 | |
| commit | 4172843ed4a38f97084032f74f07b2037b5da3a6 (patch) | |
| tree | 75d656643c3c8ae7f4918843ae3c902aab6b9ce1 /kernel/bpf/core.c | |
| parent | selftests/bpf: Do not export subtest as standalone test (diff) | |
| download | linux-dev-4172843ed4a38f97084032f74f07b2037b5da3a6.tar.xz linux-dev-4172843ed4a38f97084032f74f07b2037b5da3a6.zip | |
libbpf: Fix signedness bug in btf_dump_array_data()
The btf__resolve_size() function returns negative error codes so
"elem_size" must be signed for the error handling to work.
Fixes: 920d16af9b42 ("libbpf: BTF dumper support for typed data")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220208071552.GB10495@kili
Diffstat (limited to 'kernel/bpf/core.c')
0 files changed, 0 insertions, 0 deletions
