Re: [PATCH v2] tools/bpftool: silence a static checker warning

2018-01-18 Thread Daniel Borkmann
On 01/18/2018 10:35 AM, Dan Carpenter wrote: > There is a static checker warning that "proglen" has an upper bound but > no lower bound. The allocation will just fail harmlessly so it's not a > big deal. > > Signed-off-by: Dan Carpenter Applied to bpf-next, thanks Dan! (I changed the prefix fro

[PATCH v2] tools/bpftool: silence a static checker warning

2018-01-18 Thread Dan Carpenter
There is a static checker warning that "proglen" has an upper bound but no lower bound. The allocation will just fail harmlessly so it's not a big deal. Signed-off-by: Dan Carpenter --- v2: change the type to unsigned instead of checking for negatives diff --git a/tools/bpf/bpf_jit_disasm.c b/t