diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-04-16 16:41:51 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-04-17 20:30:06 +0300 |
commit | aa52660231410b13d237299e691c43e346e3a73f (patch) | |
tree | 8f76e4fc1483fc921d2661fb56ede8a99721700c /tools/perf/builtin-kallsyms.c | |
parent | 30e4c574969ccb624940f1f2f7886596f8fc60ad (diff) | |
download | linux-aa52660231410b13d237299e691c43e346e3a73f.tar.xz |
perf bpf: Return NULL when RB tree lookup fails in perf_env__find_bpf_prog_info()
We currently don't return NULL in case we don't find the
bpf_prog_info_node, fixing that.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
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: e4378f0cb90b ("perf bpf: Save bpf_prog_info in a rbtree in perf_env")
Link: http://lkml.kernel.org/r/20190416134151.15282-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-kallsyms.c')
0 files changed, 0 insertions, 0 deletions