diff options
| author | Hisao Tanabe <[email protected]> | 2018-08-24 15:45:56 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-08-30 17:49:25 +0000 |
| commit | fd8d2702791a970c751f8b526a17d8e725a05b46 (patch) | |
| tree | 2f0b990e3a6909a7185ae5d80274af542409d642 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | perf arm64: Fix include path for asm-generic/unistd.h (diff) | |
| download | kernel-fd8d2702791a970c751f8b526a17d8e725a05b46.tar.gz kernel-fd8d2702791a970c751f8b526a17d8e725a05b46.zip | |
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 <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Wang Nan <[email protected]>
Fixes: 03e0a7df3efd ("perf tools: Introduce bpf-output event")
LPU-Reference: [email protected]
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
