[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6e324137-fa4d-df80-902e-ae318d2bd3cd@iogearbox.net>
Date: Thu, 21 Jun 2018 23:10:59 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Jakub Kicinski <jakub.kicinski@...ronome.com>,
alexei.starovoitov@...il.com
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com
Subject: Re: [PATCH bpf 0/2] tools: bpftool: small fixes for error handling in
prog load
On 06/20/2018 08:42 PM, Jakub Kicinski wrote:
> Hi!
>
> Two small fixes for error handling in bpftool prog load, first patch
> removes a duplicated message, second one frees resources correctly.
> Multiple error messages break JSON:
>
> # bpftool -jp prog load tracex1_kern.o /sys/fs/bpf/a
> {
> "error": "can't pin the object (/sys/fs/bpf/a): File exists"
> },{
> "error": "failed to pin program"
> }
>
> Jakub Kicinski (2):
> tools: bpftool: remove duplicated error message on prog load
> tools: bpftool: remember to close the libbpf object on prog load error
>
> tools/bpf/bpftool/prog.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
Applied to bpf, thanks Jakub!
Powered by blists - more mailing lists