aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/llvm-utils.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2023-06-26 20:16:05 +0000
committerNamhyung Kim <[email protected]>2023-06-27 19:09:44 +0000
commit49a5e3edd35352833270dd18b0d5ca414fcc9406 (patch)
tree6bf27803107ff8c7ac3365dab696b61ffeb21e39 /tools/perf/util/llvm-utils.c
parentperf tools: Add printing perf_event_attr config symbol in perf_event_attr__fp... (diff)
downloadkernel-49a5e3edd35352833270dd18b0d5ca414fcc9406.tar.gz
kernel-49a5e3edd35352833270dd18b0d5ca414fcc9406.zip
perf tools: Add missing else to cmd_daemon subcommand condition
Namhyung reported segfault in perf daemon start command. It's caused by extra check on argv[0] which is set to NULL by previous __cmd_start call. Adding missing else to skip the extra check. Fixes: 92294b906e6c ("perf daemon: Dynamically allocate path to perf") Reported-and-Tested-by: Namhyung Kim <[email protected]> Reported-by: Thomas Richter <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Alexander Shishkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/llvm-utils.c')
0 files changed, 0 insertions, 0 deletions