tools lib bpf: Make bpf_program__get_private() use IS_ERR()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Jun 2016 15:36:39 +0000 (12:36 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jun 2016 21:19:34 +0000 (18:19 -0300)
commitbe834ffbd15ea9d73ba96fdbdcb1012add7e3bdf
tree36a00d108c3d86f8b544d177539e393ea35a7f64
parenta7fe0450b0142d0eb4a543840a43e22682debf25
tools lib bpf: Make bpf_program__get_private() use IS_ERR()

For consistency with bpf_map__priv() and elsewhere.

Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-x17nk5mrazkf45z0l0ahlmo8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/perf/util/bpf-loader.c