From: Lin Ming Date: Fri, 29 Apr 2011 08:41:57 +0000 (+0000) Subject: perf probe: Fix the missed parameter initialization X-Git-Tag: MMI-PSA29.97-13-9~19718^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b348a77981227c6b64fb9cf19f7c711a6806bc9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf probe: Fix the missed parameter initialization pubname_callback_param::found should be initialized to 0 in fastpath lookup, the structure is on the stack and uninitialized otherwise. Signed-off-by: Lin Ming Cc: Arnaldo Carvalho de Melo Link: http://lkml.kernel.org/r/1304066518-30420-2-git-send-email-ming.m.lin@intel.com Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index a7c7145a8d4f..3b9d0b800d5c 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c @@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf) .file = pp->file, .cu_die = &pf->cu_die, .sp_die = &pf->sp_die, + .found = 0, }; struct dwarf_callback_param probe_param = { .data = pf,