mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Lin Ming <ming.m.lin@intel.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
	acme@infradead.org, ming.m.lin@intel.com, tglx@linutronix.de,
	mingo@elte.hu
Subject: [tip:perf/core] perf probe: Fix the missed parameter initialization
Date: Tue, 10 May 2011 20:13:31 GMT	[thread overview]
Message-ID: <tip-2b348a77981227c6b64fb9cf19f7c711a6806bc9@git.kernel.org> (raw)
In-Reply-To: <1304066518-30420-2-git-send-email-ming.m.lin@intel.com>

Commit-ID:  2b348a77981227c6b64fb9cf19f7c711a6806bc9
Gitweb:     http://git.kernel.org/tip/2b348a77981227c6b64fb9cf19f7c711a6806bc9
Author:     Lin Ming <ming.m.lin@intel.com>
AuthorDate: Fri, 29 Apr 2011 08:41:57 +0000
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 10 May 2011 17:06:23 +0200

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 <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.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 tools/perf/util/probe-finder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index a7c7145..3b9d0b8 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,

  parent reply	other threads:[~2011-05-10 20:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29  8:41 [PATCH 0/2] perf misc cleanup Lin Ming
2011-04-29  8:41 ` [RESEND PATCH 1/2] perf probe: Fix the missed parameter initialization Lin Ming
2011-04-29  9:44   ` Ingo Molnar
2011-04-29 13:18     ` Lin Ming
2011-04-29 17:33   ` Arnaldo Carvalho de Melo
2011-04-30  4:14     ` Lin Ming
2011-05-10 13:43       ` Lin Ming
2011-05-10 20:13   ` tip-bot for Lin Ming [this message]
2011-04-29  8:41 ` [PATCH 2/2] perf annotate: Remove duplicate header file Lin Ming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-2b348a77981227c6b64fb9cf19f7c711a6806bc9@git.kernel.org \
    --to=ming.m.lin@intel.com \
    --cc=acme@infradead.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome