diff options
| author | Anton Protopopov <a.s.protopopov@gmail.com> | 2025-05-10 21:20:11 +0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-05-13 01:22:54 +0300 |
| commit | fd5fd538a1f4b34cee6823ba0ddda2f7a55aca96 (patch) | |
| tree | 72801ead899ad1396711449b9b8606f050545779 /tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c | |
| parent | 3a320ed325488d07081461663ac9243293006080 (diff) | |
| download | linux-fd5fd538a1f4b34cee6823ba0ddda2f7a55aca96.tar.xz | |
libbpf: Use proper errno value in nlattr
Return value of the validate_nla() function can be propagated all the
way up to users of libbpf API. In case of error this libbpf version
of validate_nla returns -1 which will be seen as -EPERM from user's
point of view. Instead, return a more reasonable -EINVAL.
Fixes: bbf48c18ee0c ("libbpf: add error reporting in XDP")
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250510182011.2246631-1-a.s.protopopov@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c')
0 files changed, 0 insertions, 0 deletions
