diff options
| author | Anton Protopopov <[email protected]> | 2025-04-30 12:08:20 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-04-30 16:04:20 +0000 |
| commit | 358b1c0f56ebb6996fcec7dcdcf6bae5dcbc8b6c (patch) | |
| tree | e6c67675445580d7ed2dd2b08ec86e633dabb068 /tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c | |
| parent | selftests/bpf: Fix kmem_cache iterator draining (diff) | |
| download | kernel-358b1c0f56ebb6996fcec7dcdcf6bae5dcbc8b6c.tar.gz kernel-358b1c0f56ebb6996fcec7dcdcf6bae5dcbc8b6c.zip | |
libbpf: Use proper errno value in linker
Return values of the linker_append_sec_data() and the
linker_append_elf_relos() functions are propagated all the
way up to users of libbpf API. In some error cases these
functions return -1 which will be seen as -EPERM from user's
point of view. Instead, return a more reasonable -EINVAL.
Fixes: faf6ed321cf6 ("libbpf: Add BPF static linker APIs")
Signed-off-by: Anton Protopopov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf_dedup_split.c')
0 files changed, 0 insertions, 0 deletions
