mbox series

[bpf-next,0/2] Change return code if failed to load object

Message ID 20200422083010.28000-1-maowenan@huawei.com
Headers show
Series Change return code if failed to load object | expand

Message

maowenan April 22, 2020, 8:30 a.m. UTC
The first patch change return code from -EINVAL to -EOPNOTSUPP, 
the second patch quote the err value returned by bpf_object__load().  

Mao Wenan (2):
  bpf: Change error code when ops is NULL
  libbpf: Return err if bpf_object__load failed

 kernel/bpf/syscall.c   | 8 +++++---
 tools/lib/bpf/libbpf.c | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)