Re: [PATCH bpf] tools: bpftool: fix potential NULL pointer dereference in do_load

2018-11-21 Thread Daniel Borkmann
On 11/21/2018 10:53 PM, Jakub Kicinski wrote: > This patch fixes a possible null pointer dereference in > do_load, detected by the semantic patch deref_null.cocci, > with the following warning: > > ./tools/bpf/bpftool/prog.c:1021:23-25: ERROR: map_replace is NULL but > dereferenced. > > The foll

[PATCH bpf] tools: bpftool: fix potential NULL pointer dereference in do_load

2018-11-21 Thread Jakub Kicinski
This patch fixes a possible null pointer dereference in do_load, detected by the semantic patch deref_null.cocci, with the following warning: ./tools/bpf/bpftool/prog.c:1021:23-25: ERROR: map_replace is NULL but dereferenced. The following code has potential null pointer references: 881