OSDN Git Service

bpf: btf: fix inconsistent IS_ERR and PTR_ERR
authorYueHaibing <yuehaibing@huawei.com>
Tue, 24 Jul 2018 02:55:24 +0000 (10:55 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Jul 2018 05:43:31 +0000 (07:43 +0200)
commit2cc512c1fa1ee99879d55d1cb4e3fd0e6eab35b3
treea0fa61d6fc238f53e1ff6fb6617169619fd72345
parentaea5f654e6b78a0c976f7a25950155932c77a53f
bpf: btf: fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in get_btf,
the proper pointer to be passed as argument is '*btf'

This issue was detected with the help of Coccinelle.

Fixes: 2d3feca8c44f ("bpf: btf: print map dump and lookup with btf info")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/map.c