diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-09 19:10:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-17 10:49:05 -0800 |
commit | 7a09a2fff84eda4ac1bba98a61a61bd58f369bed (patch) | |
tree | 7fa8821b5276acf1f3d05e5763c5dfa59175a9a8 /kernel | |
parent | dadc9f9ce8a578cd4dbb59a94725480f19312ec9 (diff) | |
download | kernel_samsung_espresso10-7a09a2fff84eda4ac1bba98a61a61bd58f369bed.zip kernel_samsung_espresso10-7a09a2fff84eda4ac1bba98a61a61bd58f369bed.tar.gz kernel_samsung_espresso10-7a09a2fff84eda4ac1bba98a61a61bd58f369bed.tar.bz2 |
ftrace: Clear bits properly in reset_iter_read()
commit 70f77b3f7ec010ff9624c1f2e39a81babc9e2429 upstream.
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
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 9f8e2e1..f88ea18 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -2058,7 +2058,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) |