summaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-info.c
diff options
context:
space:
mode:
authorHisao Tanabe <xtanabe@gmail.com>2018-08-24 18:45:56 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-08-30 20:49:25 +0300
commitfd8d2702791a970c751f8b526a17d8e725a05b46 (patch)
tree2f0b990e3a6909a7185ae5d80274af542409d642 /tools/perf/util/trace-event-info.c
parent5ab1de932e2923f490645ad017a689c5b58dc433 (diff)
downloadlinux-fd8d2702791a970c751f8b526a17d8e725a05b46.tar.xz
perf evsel: Fix potential null pointer dereference in perf_evsel__new_idx()
If evsel is NULL, we should return NULL to avoid a NULL pointer dereference a bit later in the code. Signed-off-by: Hisao Tanabe <xtanabe@gmail.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Wang Nan <wangnan0@huawei.com> Fixes: 03e0a7df3efd ("perf tools: Introduce bpf-output event") LPU-Reference: 20180824154556.23428-1-xtanabe@gmail.com Link: https://lkml.kernel.org/n/tip-e5plzjhx6595a5yjaf22jss3@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
0 files changed, 0 insertions, 0 deletions