perf report: Prevent segfault with --no-parent
authorAndi Kleen <ak@linux.intel.com>
Tue, 30 Jan 2024 18:55:52 +0000 (10:55 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 2 Feb 2024 06:15:31 +0000 (22:15 -0800)
commit1c84b47f99ea7ab7a76a785edd29e14977e1ecd0
treea5d630f7a6675168dc093d2e599a091611cd77c9
parent4962aec0d684c8edb14574ccd0da53e4926ff834
perf report: Prevent segfault with --no-parent

Prevent a perf report segfault with the (non sensical) --no-parent
option

Signed-off-By: Andi Kleen <ak@linux.intel.com>
Acked-by: Namhyung <namhyung@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240130185552.150578-1-ak@linux.intel.com
tools/perf/util/sort.c