summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2020-03-08 13:59:17 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-05-05 22:35:29 +0300
commit44d041b7b2c11b6739501fd3763cc6fed62cf0ed (patch)
treecea53881a662001b49c96b11c4a7a4c13eace789 /tools/perf/scripts/python/export-to-sqlite.py
parent23cbb41c939a09a4b51eabacdb1f68af210c084d (diff)
downloadlinux-44d041b7b2c11b6739501fd3763cc6fed62cf0ed.tar.xz
libperf: Add NULL pointer check for cpu_map iteration and NULL assignment for all_cpus.
A NULL pointer may be passed to perf_cpu_map__cpu and then cause a crash, such as the one commit cb71f7d43ece ("libperf: Setup initial evlist::all_cpus value") fix. Signed-off-by: He Zhe <zhe.he@windriver.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: Kyle Meyer <meyerk@hpe.com> Link: http://lore.kernel.org/lkml/1583665157-349023-1-git-send-email-zhe.he@windriver.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions