]> git.baikalelectronics.ru Git - kernel.git/commit
perf bpf: Return NULL when RB tree lookup fails in perf_env__find_btf()
authorJiri Olsa <jolsa@kernel.org>
Wed, 17 Apr 2019 14:55:39 +0000 (16:55 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Apr 2019 17:30:23 +0000 (14:30 -0300)
commit0eac064e08dfa0d63e09881e960a3a93e23bb093
tree3c6a3e0735cd8cbc8eb83dc2209b22646fbf154a
parent274849b39d84c05d6a184ae40c76ac03981cbad6
perf bpf: Return NULL when RB tree lookup fails in perf_env__find_btf()

We don't return NULL when we don't find the bpf_prog_info_node, fix
that.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Reported-by: Song Liu <songliubraving@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: a7bc1ef9833a ("perf bpf: Save BTF in a rbtree in perf_env")
Link: http://lkml.kernel.org/r/20190417145539.11669-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/env.c