Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7ae11b3 authored by Yong Wang's avatar Yong Wang Committed by Ingo Molnar
Browse files

perf report: Fix segmentation fault when running with '-g none'



Segmentation fault occurs when running perf report with '-g
none'.

Reported-by: default avatarAustin Zhang <austin.zhang@intel.com>
Signed-off-by: default avatarYong Wang <yong.y.wang@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100122014750.GA4111@ywang-moblin2.bj.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent b04da8bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ parse_callchain_opt(const struct option *opt __used, const char *arg,

	else if (!strncmp(tok, "none", strlen(arg))) {
		callchain_param.mode = CHAIN_NONE;
		symbol_conf.use_callchain = true;
		symbol_conf.use_callchain = false;

		return 0;
	}