From: Steven Rostedt <rostedt@goodmis.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
stable <stable@vger.kernel.org>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCH][GIT PULL] ftrace: Clear bits properly in reset_iter_read()
Date: Thu, 29 Nov 2012 22:10:42 -0500 [thread overview]
Message-ID: <1354245042.6276.135.camel@gandalf.local.home> (raw)
In-Reply-To: <1353072143.7586.7.camel@gandalf.local.home>
On Fri, 2012-11-16 at 08:22 -0500, Steven Rostedt wrote:
> Ingo,
Ping?
-- Steve
>
> Please pull the latest tip/perf/urgent tree, which can be found at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
> tip/perf/urgent
>
> Head SHA1: 70f77b3f7ec010ff9624c1f2e39a81babc9e2429
>
>
> Dan Carpenter (1):
> ftrace: Clear bits properly in reset_iter_read()
>
> ----
> kernel/trace/ftrace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> ---------------------------
> commit 70f77b3f7ec010ff9624c1f2e39a81babc9e2429
> Author: Dan Carpenter <dan.carpenter@oracle.com>
> Date: Sat Jun 9 19:10:27 2012 +0300
>
> ftrace: Clear bits properly in reset_iter_read()
>
> There is a typo here where '&' is used instead of '|' and it turns the
> statement into a noop. The original code is equivalent to:
>
> iter->flags &= ~((1 << 2) & (1 << 4));
>
> Link: http://lkml.kernel.org/r/20120609161027.GD6488@elgon.mountain
>
> Cc: stable@vger.kernel.org # all of them
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
>
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 9dcf15d..51b7159 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -2437,7 +2437,7 @@ static void reset_iter_read(struct ftrace_iterator *iter)
> {
> iter->pos = 0;
> iter->func_pos = 0;
> - iter->flags &= ~(FTRACE_ITER_PRINTALL & FTRACE_ITER_HASH);
> + iter->flags &= ~(FTRACE_ITER_PRINTALL | FTRACE_ITER_HASH);
> }
>
> static void *t_start(struct seq_file *m, loff_t *pos)
>
prev parent reply other threads:[~2012-11-30 3:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-16 13:22 Steven Rostedt
2012-11-30 3:10 ` Steven Rostedt [this message]
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=1354245042.6276.135.camel@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=dan.carpenter@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=stable@vger.kernel.org \
/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
all inboxes | Powered by JetHome®