libbpf: fix error code returned on corrupted ELF
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 May 2019 17:36:07 +0000 (10:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 23:23:35 +0000 (01:23 +0200)
commitf102154d3158c8fe9713f03bd3492f9cb8409a5e
treee918eaca7be57a5434071c4766ce48bd5ee087f4
parentc51829bb6e921337014d9ac3712b0b7e8cae9f3d
libbpf: fix error code returned on corrupted ELF

All of libbpf errors are negative, except this one. Fix it.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c