diff options
author | Jiri Olsa <[email protected]> | 2023-06-26 22:16:05 +0200 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2023-06-27 12:09:44 -0700 |
commit | 49a5e3edd35352833270dd18b0d5ca414fcc9406 (patch) | |
tree | 6bf27803107ff8c7ac3365dab696b61ffeb21e39 /tools/perf/util/trace-event-scripting.c | |
parent | 929ff679b694f0f9656aec38b3a7d5c440c5ca24 (diff) |
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/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions