Skip to content

Commit

Permalink
perf probe: Fix the missed parameter initialization
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Lin Ming authored and Ingo Molnar committed May 10, 2011
1 parent 932fed4 commit 2b348a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/perf/util/probe-finder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2b348a7

Please sign in to comment.