summaryrefslogtreecommitdiff
path: root/tools/io_uring
diff options
context:
space:
mode:
authorAlex Gartrell <alexgartrell@gmail.com>2020-08-26 00:55:49 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-08-26 15:05:35 -0700
commitef05afa66c59c2031a3798916ef3ff3778232129 (patch)
tree19d3acfa474a5c0ad18f52ef0ac7279a2e63f7a6 /tools/io_uring
parent1fc0e18b6e06cbc174a814d8fe69d37212287d1f (diff)
libbpf: Fix unintentional success return code in bpf_object__load
There are code paths where EINVAL is returned directly without setting errno. In that case, errno could be 0, which would mask the failure. For example, if a careless programmer set log_level to 10000 out of laziness, they would have to spend a long time trying to figure out why. Fixes: 4f33ddb4e3e2 ("libbpf: Propagate EPERM to caller on program load") Signed-off-by: Alex Gartrell <alexgartrell@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200826075549.1858580-1-alexgartrell@gmail.com
Diffstat (limited to 'tools/io_uring')
0 files changed, 0 insertions, 0 deletions