Commit 2b348a77 authored by Lin Ming's avatar Lin Ming Committed by Ingo Molnar

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: default avatarLin Ming <ming.m.lin@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Link: http://lkml.kernel.org/r/1304066518-30420-2-git-send-email-ming.m.lin@intel.comSigned-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 932fed4e
...@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf) ...@@ -1538,6 +1538,7 @@ static int find_probes(int fd, struct probe_finder *pf)
.file = pp->file, .file = pp->file,
.cu_die = &pf->cu_die, .cu_die = &pf->cu_die,
.sp_die = &pf->sp_die, .sp_die = &pf->sp_die,
.found = 0,
}; };
struct dwarf_callback_param probe_param = { struct dwarf_callback_param probe_param = {
.data = pf, .data = pf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment